diff --git a/loraprs_config.h b/loraprs_config.h index b8f5069..c30e9b7 100644 --- a/loraprs_config.h +++ b/loraprs_config.h @@ -10,11 +10,11 @@ struct Config bool IsClientMode; // true - client mode, false - server mode long LoraFreq; // lora frequency, e.g. 433.775e6 - int LoraBw; // lora bandwidth, e.g. 125e3 - byte LoraSf; // lora spreading factor, e.g. 12 - byte LoraCodingRate; // lora coding rate, e.g. 7 - byte LoraSync; // lora sync word/packet id, 0x3f - byte LoraPower; // lora power level in dbm, 20 + long LoraBw; // lora bandwidth, e.g. 125e3 + int LoraSf; // lora spreading factor, e.g. 12 + int LoraCodingRate; // lora coding rate, e.g. 7 + int LoraSync; // lora sync word/packet id, 0x3f + int LoraPower; // lora power level in dbm, 20 bool LoraEnableCrc; // lora crc check enabled int AprsPort; // aprs server port, 14580 diff --git a/loraprs_service.cpp b/loraprs_service.cpp index d1e264d..a5ea713 100644 --- a/loraprs_service.cpp +++ b/loraprs_service.cpp @@ -116,7 +116,7 @@ bool Service::reconnectAprsis() return true; } -void Service::setupLora(int loraFreq, int bw, byte sf, byte cr, byte pwr, byte sync, bool enableCrc) +void Service::setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int sync, bool enableCrc) { Serial.print("LoRa init..."); diff --git a/loraprs_service.h b/loraprs_service.h index 9b3d11b..40da80e 100644 --- a/loraprs_service.h +++ b/loraprs_service.h @@ -23,7 +23,7 @@ public: private: void setupWifi(const String &wifiName, const String &wifiKey); - void setupLora(int loraFreq, int bw, byte sf, byte cr, byte pwr, byte sync, bool enableCrc); + void setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int sync, bool enableCrc); void setupBt(const String &btName); void reconnectWifi();