Skip to content

Commit a86ca79

Browse files
committed
update factorytest_AB02S
1 parent 22c0610 commit a86ca79

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cores/asr6601/bootloader.bin

26.9 KB
Binary file not shown.

libraries/Basics/examples/Factory_Test/Factory_Test_AB02S/Factory_Test_AB02S.ino

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int16_t txNumber;
6868
States_t state;
6969
bool sleepMode = false;
7070
int16_t Rssi,rxSize;
71-
71+
bool gps_started=false;
7272
void setup() {
7373
Serial.begin(115200);
7474
pinMode(Vext, OUTPUT);
@@ -141,6 +141,11 @@ void loop()
141141
lowPowerHandler();
142142
break;
143143
case GPSTEST:
144+
if(!gps_started)
145+
{
146+
gps_started=true;
147+
GPS.begin();
148+
}
144149
showGpsInfo();
145150
break;
146151
default:
@@ -215,7 +220,6 @@ void userKey(void)
215220
detachInterrupt(RADIO_DIO_1);
216221
Radio.Sleep( );
217222
turnOnRGB(0,0);
218-
GPS.begin();
219223
}
220224
}
221225
}

0 commit comments

Comments
 (0)