changed to disable enable timer for play_pwm

pico-format
alanbjohnston 3 years ago committed by GitHub
parent 2b5f7d0311
commit 2b75354cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -262,9 +262,11 @@ void loop() {
// scottie1_transmit_file(output_file, debug_mode);
ITimer1.stopTimer(); // turn off pushbutton timer
// ITimer1.stopTimer(); // turn off pushbutton timer
ITimer1.disableTimer(); // turn off pushbutton timer
play_pwm_file(26);
ITimer1.restartTimer(); // turn back on pushbutton timer
// ITimer1.restartTimer(); // turn back on pushbutton timer
ITimer1.enableTimer(); // turn back on pushbutton timer
if (debug_mode)
Serial.println("Stop transmit!");
digitalWrite(PTT_PIN, HIGH); // stop transmit

Loading…
Cancel
Save

Powered by TurnKey Linux.