| 285 | } |
| 286 | |
| 287 | bool UnPhoneFeatures::setShipping(bool on) const { |
| 288 | if (on) { |
| 289 | LOGGER.warn("setShipping: on"); |
| 290 | batteryManagement->setWatchDogTimer(Bq24295::WatchDogTimer::Disabled); |
| 291 | batteryManagement->setBatFetOn(false); |
| 292 | } else { |
| 293 | LOGGER.warn("setShipping: off"); |
| 294 | batteryManagement->setWatchDogTimer(Bq24295::WatchDogTimer::Enabled40s); |
| 295 | batteryManagement->setBatFetOn(true); |
| 296 | } |
| 297 | return true; |
| 298 | } |
| 299 | |
| 300 | void UnPhoneFeatures::wakeOnPowerSwitch() const { |
| 301 | esp_sleep_enable_ext0_wakeup(pin::POWER_SWITCH, 1); |
no test coverage detected