| 73 | } |
| 74 | |
| 75 | void IRAM_ATTR handleButton2() { |
| 76 | unsigned long currentTime = millis(); |
| 77 | if (currentTime - lastPressTime > debounceDelay) { |
| 78 | if (current == DEACTIVE_MODE) { |
| 79 | current = ACTIVE_MODE; |
| 80 | } else { |
| 81 | current = DEACTIVE_MODE; |
| 82 | } |
| 83 | lastPressTime = currentTime; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | void configure_Radio(RF24 &radio, const byte *channels, size_t size) { |
| 88 | radio.setAutoAck(false); |
nothing calls this directly
no outgoing calls
no test coverage detected