Skip to content

Commit 2203328

Browse files
committed
Firmware v1.4 - add soft reset to clear "Ready for SUF Download"
1 parent 217ae13 commit 2203328

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/build-for-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
env:
77
FILENAME_PREFIX: GNSSDO_Firmware
88
FIRMWARE_VERSION_MAJOR: 1
9-
FIRMWARE_VERSION_MINOR: 3
9+
FIRMWARE_VERSION_MINOR: 4
1010
CORE_VERSION: 3.0.7
1111

1212
jobs:

Firmware/GNSSDO_Firmware/GNSS.ino

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,25 @@ void beginGNSS()
101101

102102
if (retries == 0)
103103
{
104-
systemPrintln("GNSS FAIL (SBFOnce)");
105-
return;
104+
systemPrintln("GNSS FAIL (SBFOnce). Attempting soft reset...");
105+
106+
// Module could be stuck in "Ready for SUF Download ...". Send a soft reset to unstick it
107+
sendWithResponse("erst,soft,none\n\r", "ResetReceiver");
108+
109+
retries = 20;
110+
111+
while (!sendWithResponse("esoc, COM1, IPStatus\n\r", "SBFOnce") && (retries > 0))
112+
{
113+
systemPrintln("No response from mosaic. Retrying - with escape sequence...");
114+
sendWithResponse("SSSSSSSSSSSSSSSSSSSS\n\r", "COM4>"); // Send escape sequence
115+
retries--;
116+
}
117+
118+
if (retries == 0)
119+
{
120+
systemPrintln("GNSS FAIL (SBFOnce)");
121+
return;
122+
}
106123
}
107124

108125
if (!inMainMenu)

0 commit comments

Comments
 (0)