Files
firmware/variants
Andrew Yong f8c3f43ea6 Fix xiao_ble variant build error due to undefined BATTERY_SENSE_RESOLUTION_BITS (#3732)
Define BATTERY_SENSE_RESOLUTION_BITS based on [amoroz's snippet on the Meshtastic forum](https://meshtastic.discourse.group/t/new-1w-diy-variant-xiao-nrf52840-ebyte-e22-900m30s/7904/10).

Fixes following build error:

```
src/Power.cpp: In member function 'virtual uint16_t AnalogBatteryLevel::getBattVoltage()':
src/Power.cpp:224:79: error: 'BATTERY_SENSE_RESOLUTION_BITS' was not declared in this scope
             scaled = operativeAdcMultiplier * ((1000 * AREF_VOLTAGE) / pow(2, BATTERY_SENSE_RESOLUTION_BITS)) * raw;
```

Signed-off-by: Andrew Yong <me@ndoo.sg>
2024-04-27 06:17:17 -05:00
..
2023-11-29 15:51:05 -06:00
2023-12-02 07:46:25 -06:00
2024-03-09 06:55:02 -06:00
2023-11-29 15:51:05 -06:00
2024-04-05 14:58:00 +01:00
2024-02-25 18:44:43 +08:00
2023-11-29 15:51:05 -06:00
2023-06-01 07:14:55 -05:00