Skip to content

Commit

Permalink
add STX frame recognition for Dittel KRT2, remove loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
iltis42 committed Apr 5, 2022
1 parent 53b41ae commit 6cfa476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/DataLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void DataLink::parse_NMEA_UBX( char c, int port, bool last ){
framebuffer[pos] = c;
pos++;
state = GET_KRT2_STX;
ESP_LOGI(FNAME, "Port %1d: STX Start at %d", port, pos );
// ESP_LOGI(FNAME, "Port %1d: STX Start at %d", port, pos );
break;
case NMEA_START1:
case NMEA_START2:
Expand Down Expand Up @@ -157,7 +157,7 @@ void DataLink::parse_NMEA_UBX( char c, int port, bool last ){
pos++;
if( pos > 12 ){ // 0..12 = 13 bytes STX message buffer.
framebuffer[pos] = 0; // framebuffer is zero terminated
ESP_LOG_BUFFER_HEXDUMP(FNAME, framebuffer, pos+1, ESP_LOG_INFO);
// ESP_LOG_BUFFER_HEXDUMP(FNAME, framebuffer, pos+1, ESP_LOG_INFO);
routeSerialData(framebuffer, pos+1, port, true );
state = GET_NMEA_UBX_SYNC;
pos = 0;
Expand Down

0 comments on commit 6cfa476

Please sign in to comment.