| 43 | const unsigned long debounceDelay = 500; |
| 44 | |
| 45 | void IRAM_ATTR handleButtonPress() { |
| 46 | unsigned long currentTime = millis(); |
| 47 | if (currentTime - lastButtonPressTime > debounceDelay) { |
| 48 | modeChangeRequested = true; |
| 49 | lastButtonPressTime = currentTime; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void configureRadio(RF24 &radio, const byte* channels, size_t size) { |
| 54 | radio.setAutoAck(false); |
nothing calls this directly
no outgoing calls
no test coverage detected