fix cli belt mode
This commit is contained in:
parent
ef88a1be9a
commit
1126c24aa1
2 changed files with 3 additions and 1 deletions
|
|
@ -159,4 +159,4 @@ kiri.load(function(API) {
|
|||
});
|
||||
moved = {x:0, y:0};
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue