We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7408f6 commit a038a35Copy full SHA for a038a35
1 file changed
js/joystick_wrapper.js
@@ -163,9 +163,9 @@ class Joystick{
163
this.updateStatus();
164
const sending = this.getChangedBytes(this.joysticksArray, this.lastsentArray);
165
if(sending[1] > 0){
166
- await this.writeToDevice(sending); //(JSON.stringify(this.joysticks) + '\r');
+ this.lastsentArray = this.joysticksArray.slice();
167
+ await this.writeToDevice(sending);
168
}
- this.lastsentArray = this.joysticksArray.slice();
169
this.sendingPacket = false;
170
171
0 commit comments