Change charge display off to sleep (#3153)

This commit is contained in:
Pezsma
2026-04-29 19:57:17 +02:00
committed by GitHub
parent c9f310f548
commit ab986a0378
18 changed files with 1195 additions and 826 deletions
+3 -1
View File
@@ -246,7 +246,9 @@ bool I2cDev_PPmod::send_poweroff_command() {
if (isLocked()) return false; // device is busy
Command cmd = Command::COMMAND_POWER_OFF;
uint8_t tmp = 0; // result of the ack. 0 = no, 1 = ok
i2c_read((uint8_t*)&cmd, 2, &tmp, 1);
if (!i2c_read((uint8_t*)&cmd, 2, &tmp, 1)) {
return false;
}
return (tmp == 1);
}