just small code cleaning
This commit is contained in:
parent
d004efb193
commit
df3b15ff35
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
extern Configuration Config;
|
||||
extern WiFiClient espClient;
|
||||
extern int internalLedPin;
|
||||
extern uint32_t lastScreenOn;
|
||||
extern String firstLine;
|
||||
extern String secondLine;
|
||||
|
|
@ -29,7 +28,7 @@ namespace APRS_IS_Utils {
|
|||
}
|
||||
|
||||
void connect() {
|
||||
int count = 0;
|
||||
uint8_t count = 0;
|
||||
String aprsauth;
|
||||
Serial.print("Connecting to APRS-IS ... ");
|
||||
while (!espClient.connect(Config.aprs_is.server.c_str(), Config.aprs_is.port) && count < 20) {
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ namespace GPS_Utils {
|
|||
}
|
||||
|
||||
String getDistance(String packet) {
|
||||
int encodedBytePosition = 0;
|
||||
uint8_t encodedBytePosition = 0;
|
||||
if (packet.indexOf(":!") > 10) {
|
||||
encodedBytePosition = packet.indexOf(":!") + 14;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ namespace WIFI_Utils {
|
|||
if (currentWiFi->ssid == "") {
|
||||
startAP = true;
|
||||
} else {
|
||||
int wifiCounter = 0;
|
||||
uint8_t wifiCounter = 0;
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.disconnect();
|
||||
delay(500);
|
||||
|
|
|
|||
Loading…
Reference in New Issue