mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-24 22:10:09 +00:00
Fix: initializer the error text variable
This commit is contained in:
parent
29959d0694
commit
e6fee598a3
@ -338,6 +338,8 @@ void StoreForwardModule::sendErrorTextMessage(NodeNum dest, bool want_response)
|
|||||||
const char *str;
|
const char *str;
|
||||||
if (this->busy) {
|
if (this->busy) {
|
||||||
str = "S&F - Busy. Try again shortly.";
|
str = "S&F - Busy. Try again shortly.";
|
||||||
|
} else {
|
||||||
|
str = "S&F - Error. Channel not available.";
|
||||||
}
|
}
|
||||||
LOG_WARN("%s", str);
|
LOG_WARN("%s", str);
|
||||||
memcpy(pr->decoded.payload.bytes, str, strlen(str));
|
memcpy(pr->decoded.payload.bytes, str, strlen(str));
|
||||||
|
Loading…
Reference in New Issue
Block a user