[SX127x] Moved debug strings to flash
This commit is contained in:
parent
000a771374
commit
cc38c24f40
1 changed files with 4 additions and 4 deletions
|
@ -10,11 +10,11 @@ int16_t SX127x::begin(uint8_t chipVersion, uint8_t syncWord, uint8_t currentLimi
|
||||||
|
|
||||||
// try to find the SX127x chip
|
// try to find the SX127x chip
|
||||||
if(!SX127x::findChip(chipVersion)) {
|
if(!SX127x::findChip(chipVersion)) {
|
||||||
DEBUG_PRINTLN("No SX127x found!");
|
DEBUG_PRINTLN(F("No SX127x found!"));
|
||||||
_mod->term();
|
_mod->term();
|
||||||
return(ERR_CHIP_NOT_FOUND);
|
return(ERR_CHIP_NOT_FOUND);
|
||||||
} else {
|
} else {
|
||||||
DEBUG_PRINTLN("Found SX127x!");
|
DEBUG_PRINTLN(F("Found SX127x!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// check active modem
|
// check active modem
|
||||||
|
@ -54,11 +54,11 @@ int16_t SX127x::beginFSK(uint8_t chipVersion, float br, float freqDev, float rxB
|
||||||
|
|
||||||
// try to find the SX127x chip
|
// try to find the SX127x chip
|
||||||
if(!SX127x::findChip(chipVersion)) {
|
if(!SX127x::findChip(chipVersion)) {
|
||||||
DEBUG_PRINTLN("No SX127x found!");
|
DEBUG_PRINTLN(F("No SX127x found!"));
|
||||||
_mod->term();
|
_mod->term();
|
||||||
return(ERR_CHIP_NOT_FOUND);
|
return(ERR_CHIP_NOT_FOUND);
|
||||||
} else {
|
} else {
|
||||||
DEBUG_PRINTLN("Found SX127x!");
|
DEBUG_PRINTLN(F("Found SX127x!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// check currently active modem
|
// check currently active modem
|
||||||
|
|
Loading…
Add table
Reference in a new issue