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

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