Allow position replay on lost connection
This commit is contained in:
+2
-1
@@ -231,8 +231,9 @@
|
||||
}
|
||||
});
|
||||
|
||||
BLE.on('connected', () => {
|
||||
BLE.on('connected', async () => {
|
||||
btnDisable.style.display = 'inline-flex';
|
||||
await BLE.write('POS').catch(e => console.warn('POS sync failed:', e));
|
||||
});
|
||||
BLE.on('disconnected', () => {
|
||||
btnDisable.style.display = 'none';
|
||||
|
||||
Reference in New Issue
Block a user