Closed bobrippling closed 6 months ago
This moves common code to a module and fixes a bug shared across all instances
The bugfix:
-for(var ad in Bangle.bleAdvert){ +for(var ad of Bangle.bleAdvert){ if(ad[0x180F]){ ad[0x180F] = [E.getBattery()]; found = true; break; } }
Tested by installing both bootgattbat and bootgatthrm, confirmed they're both able to advertise battery/hrm at the same time
bootgattbat
bootgatthrm
This moves common code to a module and fixes a bug shared across all instances
The bugfix: