fixing some small stuff

pull/16/head
Peter Buchegger 2021-03-07 23:08:49 +01:00
rodzic 3033e0f7f1
commit 5d0e923311
2 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -4,6 +4,7 @@ platform = espressif32 @ 3.0.0
framework = arduino
lib_ldf_mode = deep+
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
lib_deps =
adafruit/Adafruit GFX Library @ 1.7.5
adafruit/Adafruit SSD1306 @ 2.4.0

Wyświetl plik

@ -72,20 +72,20 @@ void setup()
// cppcheck-suppress unusedFunction
void loop()
{
if(Config.debug == false)
if(Config.debug)
{
while(ss.available() > 0)
while(Serial.available() > 0)
{
char c = ss.read();
char c = Serial.read();
//Serial.print(c);
gps.encode(c);
}
}
else
{
while(Serial.available() > 0)
while(ss.available() > 0)
{
char c = Serial.read();
char c = ss.read();
//Serial.print(c);
gps.encode(c);
}
@ -201,9 +201,9 @@ void loop()
String("Sats: ") + gps.satellites.value() + " HDOP: " + gps.hdop.hdop(),
String("Nxt Bcn: ") + createTimeString(nextBeaconTimeStamp)
#ifdef TTGO_T_Beam_V1_0
, String("Bat: ") + batteryVoltage + "V " + batteryChargeCurrent + "mA"
, String("Bat: ") + batteryVoltage + "V, " + batteryChargeCurrent + "mA"
#endif
, String("Smart Beacon is " + getSmartBeaconState())
, String("Smart Beacon: " + getSmartBeaconState())
);
if(Config.smart_beacon.active)