| 268 | } |
| 269 | |
| 270 | bool UnPhoneFeatures::setExpanderPower(bool on) const { |
| 271 | assert(ioExpander != nullptr); |
| 272 | return esp_io_expander_set_level(ioExpander, expanderpin::EXPANDER_POWER, on ? 1U : 0U) == ESP_OK; |
| 273 | } |
| 274 | |
| 275 | bool UnPhoneFeatures::isPowerSwitchOn() const { |
| 276 | return gpio_get_level(pin::POWER_SWITCH) > 0; |
no outgoing calls
no test coverage detected