@@ -156,8 +156,6 @@ void btReadTask(void *e)
156156 2000 ; // Bluetooth serial traffic must stop this amount before an escape char is recognized
157157 uint8_t btEscapeCharsReceived = 0 ; // Used to enter remote command mode
158158
159- uint8_t btAppCommandCharsReceived = 0 ; // Used to enter app command mode
160-
161159 // Start notification
162160 task.btReadTaskRunning = true ;
163161 if (settings.printTaskStartStop )
@@ -207,25 +205,7 @@ void btReadTask(void *e)
207205 addToGnssBuffer (btEscapeCharacter);
208206 }
209207 }
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 ;
224208
225- btAppCommandCharsReceived = 0 ;
226- btLastByteReceived = millis ();
227- }
228- }
229209
230210 else // This character is not a command character, pass along to GNSS
231211 {
@@ -234,10 +214,6 @@ void btReadTask(void *e)
234214 {
235215 addToGnssBuffer (btEscapeCharacter);
236216 }
237- while (btAppCommandCharsReceived-- > 0 )
238- {
239- addToGnssBuffer (btAppCommandCharacter);
240- }
241217
242218 // Pass byte to GNSS receiver or to system
243219 // TODO - control if this RTCM source should be listened to or not
@@ -250,8 +226,6 @@ void btReadTask(void *e)
250226 btLastByteReceived = millis ();
251227 btEscapeCharsReceived = 0 ; // Update timeout check for escape char and partial frame
252228
253- btAppCommandCharsReceived = 0 ;
254-
255229 bluetoothIncomingRTCM = true ;
256230
257231 // Record the arrival of RTCM from the Bluetooth connection (a phone or tablet is providing the RTCM
0 commit comments