Skip to content

Commit

Permalink
Fix SIM800L lockup issue
Browse files Browse the repository at this point in the history
+ version bump
  • Loading branch information
JosephHewitt committed Apr 15, 2023
1 parent 019984b commit 4abf5a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion A/A.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//Joseph Hewitt 2021
//This code is for the ESP32 "Side A" of the wardriver hardware revision 3.

const String VERSION = "1.0.1";
const String VERSION = "1.0.3";

#include <MicroNMEA.h>
#include "FS.h"
Expand Down
7 changes: 7 additions & 0 deletions B/B.ino
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ void loop2( void * parameter) {
char linebuf[120];
int i = 0;
int linelen = 0;
int no_data_times = 0;
while (i < 120){
if (Serial2.available()){
char c = Serial2.read();
Expand All @@ -301,6 +302,12 @@ void loop2( void * parameter) {
}
linebuf[i] = c;
i++;
} else {
no_data_times++;
if (no_data_times > 500){
break;
}
delay(2);
}
}
linelen = i;
Expand Down

0 comments on commit 4abf5a2

Please sign in to comment.