testing
This commit is contained in:
parent
ef03acd29f
commit
59cbe6939b
@ -11,13 +11,14 @@ void gps_loop(void * pvParameters) {
|
||||
configASSERT( ( ( uint32_t ) pvParameters ) == 1 ); // FreeRTOS check
|
||||
|
||||
HardwareSerial GPS_Serial(1);
|
||||
//GPS_Serial.begin(9600, SERIAL_8N1, 12, 15);
|
||||
GPS_Serial.begin(HAS_GPS);
|
||||
//GPS_Serial.begin(HAS_GPS);
|
||||
GPS_Serial.begin(9600, SERIAL_8N1, 12, 15 );
|
||||
|
||||
while(1) {
|
||||
|
||||
while (GPS_Serial.available()) {
|
||||
my_gps.encode(GPS_Serial.read());
|
||||
ESP_LOGI(TAG, "GSP checksum passed / failed: %d / %d", my_gps.passedChecksum(), my_gps.failedChecksum());
|
||||
}
|
||||
|
||||
vTaskDelay(1/portTICK_PERIOD_MS); // reset watchdog
|
||||
|
Loading…
Reference in New Issue
Block a user