From 06b91c4a374a58ffa96969014a0cbecc07f37346 Mon Sep 17 00:00:00 2001 From: Staars Date: Sun, 19 Apr 2020 21:51:56 +0200 Subject: [PATCH] revert serial related ESP32-changes, not needed anymore --- tasmota/xsns_60_GPS.ino | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tasmota/xsns_60_GPS.ino b/tasmota/xsns_60_GPS.ino index 87e15d6a2..b789222fe 100644 --- a/tasmota/xsns_60_GPS.ino +++ b/tasmota/xsns_60_GPS.ino @@ -119,10 +119,6 @@ rule3 on tele-FLOG#sec do DisplayText [f0c1l4]SAV:%value% endon on tele-FLOG#r #include "NTPServer.h" #include "NTPPacket.h" -#ifdef ESP32 -#include -#endif - /*********************************************************************************************\ * constants \*********************************************************************************************/ @@ -299,11 +295,7 @@ enum UBXMsgType { #ifdef USE_FLOG FLOG *Flog = nullptr; #endif //USE_FLOG -#ifdef ESP8266 TasmotaSerial *UBXSerial; -#else -HardwareSerial *UBXSerial; -#endif NtpServer timeServer(PortUdp); @@ -363,21 +355,13 @@ void UBXDetect(void) { UBX.mode.init = 0; if ((pin[GPIO_GPS_RX] < 99) && (pin[GPIO_GPS_TX] < 99)) { -#ifdef ESP8266 UBXSerial = new TasmotaSerial(pin[GPIO_GPS_RX], pin[GPIO_GPS_TX], 1, 0, UBX_SERIAL_BUFFER_SIZE); // 64 byte buffer is NOT enough if (UBXSerial->begin(9600)) { -#else - UBXSerial = new HardwareSerial(2); - UBXSerial->begin(9600,SERIAL_8N1,pin[GPIO_GPS_RX], pin[GPIO_GPS_TX]); - { -#endif DEBUG_SENSOR_LOG(PSTR("UBX: started serial")); -#ifdef ESP8266 if (UBXSerial->hardwareSerial()) { ClaimSerial(); DEBUG_SENSOR_LOG(PSTR("UBX: claim HW")); } -#endif } } else {