GPS handling library
Dependents: LoRaWAN-NAMote72-Application-Demo-good LoRaWAN-gps-cayenne LoRaWAN-NAMote72-Application-Demo
Fork of lib_gps by
Diff: gps.cpp
- Revision:
- 4:b8c049fa7db2
- Parent:
- 3:03d7275dc4fd
- Child:
- 5:eb5ab720e3f9
--- a/gps.cpp Thu Jul 02 00:12:50 2015 +0000 +++ b/gps.cpp Wed Oct 21 01:08:46 2015 +0000 @@ -45,11 +45,11 @@ if (len < RX_BUF_SIZE) { rx_bufs[rx_bufs_in_idx][len] = ch; rx_buf_lens[rx_bufs_in_idx]++; - } else - printf("S"); - } else if (len != 0) { + } /*else + printf("S");*/ + } /*else if (len != 0) { printf("$ at %d\r\n", len); - } + }*/ if (ch == '\n') { rx_bufs[rx_bufs_in_idx][len] = 0; // null terminate @@ -164,14 +164,14 @@ // could we calculate a verification checksum ? if( checksumIndex < 0 ) { - printf("gps:checksumIndex:%d\r\n", checksumIndex); + //printf("gps:checksumIndex:%d\r\n", checksumIndex); return false; } // check if there are enough char in the serial buffer to read checksum if( checksumIndex >= ( rx_buf_lens[idx] - 2 ) ) { - printf("gps:checksumIndex:%d\r\n", checksumIndex); + //printf("gps:checksumIndex:%d\r\n", checksumIndex); return false; }