| 133 | } |
| 134 | |
| 135 | void pressBt03() { |
| 136 | static unsigned long last_interrupt_time = 0; |
| 137 | unsigned long interrupt_time = millis(); |
| 138 | if (interrupt_time - last_interrupt_time > 200) { |
| 139 | dataRateIndex = (dataRateIndex + 1) % 3; // Cycle through data rates |
| 140 | setRadioParameters(); |
| 141 | Serial.println("Data rate changed"); |
| 142 | } |
| 143 | last_interrupt_time = interrupt_time; |
| 144 | } |
| 145 | |
| 146 | void pressBt04() { |
| 147 | static unsigned long last_interrupt_time = 0; |
nothing calls this directly
no test coverage detected