| 59 | } |
| 60 | |
| 61 | UnPhoneFeatures::~UnPhoneFeatures() { |
| 62 | if (buttonHandlingThread.getState() != tt::Thread::State::Stopped) { |
| 63 | buttonHandlingThreadInterruptRequest = true; |
| 64 | buttonHandlingThread.join(); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | bool UnPhoneFeatures::initPowerSwitch() { |
| 69 | gpio_config_t config = { |