@@ -156,8 +156,6 @@ void btReadTask(void *e)
156
156
2000 ; // Bluetooth serial traffic must stop this amount before an escape char is recognized
157
157
uint8_t btEscapeCharsReceived = 0 ; // Used to enter remote command mode
158
158
159
- uint8_t btAppCommandCharsReceived = 0 ; // Used to enter app command mode
160
-
161
159
// Start notification
162
160
task.btReadTaskRunning = true ;
163
161
if (settings.printTaskStartStop )
@@ -207,25 +205,7 @@ void btReadTask(void *e)
207
205
addToGnssBuffer (btEscapeCharacter);
208
206
}
209
207
}
210
- else if (incoming == btAppCommandCharacter)
211
- {
212
- btAppCommandCharsReceived++;
213
- if (btAppCommandCharsReceived == btMaxAppCommandCharacters)
214
- {
215
- sendGnssBuffer (); // Finish sending whatever is left in the buffer
216
-
217
- // Discard any bluetooth data in the circular buffer
218
- btRingBufferTail = dataHead;
219
-
220
- systemPrintln (" Device has entered config mode over Bluetooth" );
221
- printEndpoint = PRINT_ENDPOINT_ALL;
222
- btPrintEcho = true ;
223
- runCommandMode = true ;
224
208
225
- btAppCommandCharsReceived = 0 ;
226
- btLastByteReceived = millis ();
227
- }
228
- }
229
209
230
210
else // This character is not a command character, pass along to GNSS
231
211
{
@@ -234,10 +214,6 @@ void btReadTask(void *e)
234
214
{
235
215
addToGnssBuffer (btEscapeCharacter);
236
216
}
237
- while (btAppCommandCharsReceived-- > 0 )
238
- {
239
- addToGnssBuffer (btAppCommandCharacter);
240
- }
241
217
242
218
// Pass byte to GNSS receiver or to system
243
219
// TODO - control if this RTCM source should be listened to or not
@@ -250,8 +226,6 @@ void btReadTask(void *e)
250
226
btLastByteReceived = millis ();
251
227
btEscapeCharsReceived = 0 ; // Update timeout check for escape char and partial frame
252
228
253
- btAppCommandCharsReceived = 0 ;
254
-
255
229
bluetoothIncomingRTCM = true ;
256
230
257
231
// Record the arrival of RTCM from the Bluetooth connection (a phone or tablet is providing the RTCM
0 commit comments