Skip to content

Commit 34bdefd

Browse files
committed
fix LoRaWAN compiler warnings
1 parent 964de1a commit 34bdefd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/LoRaWan.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void LoRaWanClass::setKey(char *NwkSKey, char *AppSKey, char *AppKey)
137137
bool LoRaWanClass::setDataRate(_data_rate_t dataRate, _physical_type_t physicalType)
138138
{
139139
char cmd[32];
140-
const char *str;
140+
// const char *str;
141141

142142
if ((physicalType <= UNINIT) && (physicalType >= UNDEF)) {
143143
myType = UNINIT;
@@ -706,7 +706,7 @@ bool LoRaWanClass::setDeviceMode(_device_mode_t mode)
706706
// setDeviceMode should have been called before this.
707707
bool LoRaWanClass::setOTAAJoin(_otaa_join_cmd_t command, unsigned char timeout)
708708
{
709-
char *ptr;
709+
// char *ptr;
710710
short count;
711711
bool joined = false;
712712

@@ -920,7 +920,7 @@ void LoRaWanClass::loraDebug(void)
920920
//
921921
// timeout is the total amount of time allowed for collecting data
922922
// Would it make more sense if it was the time w/o a character?
923-
void LoRaWanClass::loraDebugPrint(unsigned char timeout)
923+
void LoRaWanClass::loraDebugPrint(unsigned int timeout)
924924
{
925925
unsigned long timerStart, timerEnd;
926926
char c;
@@ -944,7 +944,7 @@ void LoRaWanClass::loraDebugPrint(unsigned char timeout)
944944
}
945945
#endif
946946

947-
void LoRaWanClass::debugPrint(char *str) {
947+
void LoRaWanClass::debugPrint(const char *str) {
948948
SerialUSB.print(str);
949949
}
950950

src/LoRaWan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ class LoRaWanClass
469469
*/
470470
void loraDebug(void);
471471
#if _DEBUG_SERIAL_
472-
void loraDebugPrint(unsigned char timeout);
472+
void loraDebugPrint(unsigned int timeout);
473473
#endif
474-
void debugPrint(char *str);
474+
void debugPrint(const char *str);
475475
/**
476476
* \brief Read battery voltage
477477
*

0 commit comments

Comments
 (0)