usermods/MAX17048_v2: Fix precision variable type

The String constructors are ambiguous with uint8_ts.
This commit is contained in:
Will Miles
2025-03-28 20:15:36 -04:00
parent 468ef50f75
commit d03604b14a
3 changed files with 4 additions and 14 deletions

View File

@@ -35,8 +35,8 @@ class Usermod_MAX17048 : public Usermod {
unsigned long lastSend = UINT32_MAX - (USERMOD_MAX17048_MAX_MONITOR_INTERVAL - USERMOD_MAX17048_FIRST_MONITOR_AT);
uint8_t VoltageDecimals = 3; // Number of decimal places in published voltage values
uint8_t PercentDecimals = 1; // Number of decimal places in published percent values
unsigned VoltageDecimals = 3; // Number of decimal places in published voltage values
unsigned PercentDecimals = 1; // Number of decimal places in published percent values
// string that are used multiple time (this will save some flash memory)
static const char _name[];