Allow position replay on lost connection

This commit is contained in:
osiu97
2026-07-08 19:45:14 +02:00
parent 80e9a471c3
commit 136ef8b721
4 changed files with 20 additions and 6 deletions
+2 -1
View File
@@ -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';