| 158 | } |
| 159 | |
| 160 | void pressBt04() { |
| 161 | static unsigned long last_interrupt_time = 0; |
| 162 | unsigned long interrupt_time = millis(); |
| 163 | if (interrupt_time - last_interrupt_time > 200) { |
| 164 | paLevelIndex = (paLevelIndex + 1) % 4; // Cycle through power levels |
| 165 | setRadioParameters(); |
| 166 | //Serial.println("Power level changed"); |
| 167 | } |
| 168 | last_interrupt_time = interrupt_time; |
| 169 | } |
| 170 | |
| 171 | void configure(RF24 &radio) { |
| 172 | radio.begin(); |
nothing calls this directly
no test coverage detected