| 144 | } |
| 145 | |
| 146 | void pressBt04() { |
| 147 | static unsigned long last_interrupt_time = 0; |
| 148 | unsigned long interrupt_time = millis(); |
| 149 | if (interrupt_time - last_interrupt_time > 200) { |
| 150 | paLevelIndex = (paLevelIndex + 1) % 4; // Cycle through power levels |
| 151 | setRadioParameters(); |
| 152 | Serial.println("Power level changed"); |
| 153 | } |
| 154 | last_interrupt_time = interrupt_time; |
| 155 | } |
| 156 | |
| 157 | void configure(RF24 &radio) { |
| 158 | radio.begin(); |
nothing calls this directly
no test coverage detected