just small code cleaning

This commit is contained in:
richonguzman 2024-03-27 15:28:27 -03:00
parent d004efb193
commit df3b15ff35
5 changed files with 7 additions and 8 deletions

View File

@ -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) {

View File

@ -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;
}

View File

@ -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);