From 3b67b85b14eeb2bad843eee3716c9cdec8979845 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 20 Nov 2022 09:46:50 -0500 Subject: [PATCH] restart button isr after SSTV mode --- cubesatsim/cubesatsim.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 08aa3c03..daf77215 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -305,7 +305,9 @@ void loop() { // check to see if the mode has changed if (mode != new_mode) { Serial.println("Changing mode"); - mode = new_mode; // change modes if button pressed + if (mode == SSTV) + start_button_isr(); // restart button isr + mode = new_mode; // change modes if button pressed write_mode(); if (new_mode != CW) transmit_callsign(callsign);