Fix warnings

This commit is contained in:
Thomas Hooge 2024-11-20 10:42:38 +01:00
parent 64cb33ba67
commit a75ea95694
3 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ public:
} }
// Logging voltage value // Logging voltage value
if (raw == NULL) return; if (raw == 0) return;
LOG_DEBUG(GwLog::LOG,"Drawing at PageVoltage, Type:%s %s:=%f", batType, name1.c_str(), raw); LOG_DEBUG(GwLog::LOG,"Drawing at PageVoltage, Type:%s %s:=%f", batType, name1.c_str(), raw);
// Draw page // Draw page

View File

@ -486,7 +486,7 @@ uint8_t RTC_BQ32000::readRegister(uint8_t address) {
return Wire.read(); return Wire.read();
} }
uint8_t RTC_BQ32000::writeRegister(uint8_t address, uint8_t value) { void RTC_BQ32000::writeRegister(uint8_t address, uint8_t value) {
/* Write the given value to the register at the given address. /* Write the given value to the register at the given address.
*/ */
Wire.beginTransmission(BQ32000_ADDRESS); Wire.beginTransmission(BQ32000_ADDRESS);

View File

@ -182,7 +182,7 @@ public:
// utility functions: // utility functions:
static uint8_t readRegister(uint8_t address); static uint8_t readRegister(uint8_t address);
static uint8_t writeRegister(uint8_t address, uint8_t value); static void writeRegister(uint8_t address, uint8_t value);
static uint8_t bcd2bin (uint8_t val) { return val - 6 * (val >> 4); } static uint8_t bcd2bin (uint8_t val) { return val - 6 * (val >> 4); }
static uint8_t bin2bcd (uint8_t val) { return val + 6 * (val / 10); } static uint8_t bin2bcd (uint8_t val) { return val + 6 * (val / 10); }
}; };