kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_Tracker
fixing some small stuff
rodzic
3033e0f7f1
commit
5d0e923311
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue