From 8979a4f901be69c738d2190c24cff0cf5c799d84 Mon Sep 17 00:00:00 2001 From: DigitalConfections Date: Tue, 28 Jul 2020 19:24:13 -0400 Subject: [PATCH] Ver 0.17 Fixes these two minor bugs: o When start tones were turned off, the audio tone output would be silenced during the time that the start tone sequence would have played. The key output pin still functioned as intended. o Start tones had a 5-minute interval if the transmitter were set to function as a Sprint spectator beacon, instead of a more appropriate 2-minute interval. --- Arduino-microfox/Arduino-microfox.ino | 6 +++--- Arduino-microfox/defs.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Arduino-microfox/Arduino-microfox.ino b/Arduino-microfox/Arduino-microfox.ino index b7c8a39..e9671d2 100644 --- a/Arduino-microfox/Arduino-microfox.ino +++ b/Arduino-microfox/Arduino-microfox.ino @@ -178,7 +178,7 @@ void doSynchronization(void); { while(initializeEEPROMVars()) { - ; /* Initialize variables stored in EEPROM */ + ; /* Initialize variables stored in EEPROM */ } setUpTemp(); @@ -329,7 +329,7 @@ void doSynchronization(void); g_number_of_foxes = 1; g_pattern_codespeed = 8; g_id_interval = 600; - g_startclock_interval = 300; + g_startclock_interval = (g_fox == SPECTATOR) ? 120 : 300; } else if(((g_fox >= FOX_1) && (g_fox <= FOX_5)) || (g_fox == FOX_DEMO)) { @@ -907,7 +907,7 @@ ISR(TIMER1_COMPA_vect) /*timer1 interrupt 1Hz */ } } - if((g_seconds_since_sync + 11) % g_startclock_interval <= 10) + if(g_enable_start_timer && ((g_seconds_since_sync + 11) % g_startclock_interval <= 10)) { g_lastSeconds = (uint8_t)((g_seconds_since_sync + 11) % g_startclock_interval); } diff --git a/Arduino-microfox/defs.h b/Arduino-microfox/defs.h index b8482d0..1f3ac0c 100644 --- a/Arduino-microfox/defs.h +++ b/Arduino-microfox/defs.h @@ -70,7 +70,7 @@ /****************************************************** * Set the text that gets displayed to the user */ -#define SW_REVISION "0.16" +#define SW_REVISION "0.17" //#define TRANQUILIZE_WATCHDOG