fix cli belt mode

This commit is contained in:
Stewart Allen 2021-10-20 11:40:51 -04:00
commit 1126c24aa1
2 changed files with 3 additions and 1 deletions

View file

@ -159,4 +159,4 @@ kiri.load(function(API) {
});
moved = {x:0, y:0};
});
});
});

View file

@ -121,6 +121,7 @@ class Engine {
return new Promise((accept, reject) => {
KIRI.client.clear();
KIRI.client.sync([ this.widget ]);
KIRI.client.rotate(this.settings);
KIRI.client.slice(this.settings, this.widget, msg => {
this.listener({slice:msg});
if (msg.error) {
@ -130,6 +131,7 @@ class Engine {
accept(this);
}
});
KIRI.client.unrotate(this.settings);
});
}