Fix: initializer the error text variable

This commit is contained in:
Benjamin Faershtein 2025-03-16 10:47:05 -07:00
parent 29959d0694
commit e6fee598a3

View File

@ -338,6 +338,8 @@ void StoreForwardModule::sendErrorTextMessage(NodeNum dest, bool want_response)
const char *str;
if (this->busy) {
str = "S&F - Busy. Try again shortly.";
} else {
str = "S&F - Error. Channel not available.";
}
LOG_WARN("%s", str);
memcpy(pr->decoded.payload.bytes, str, strlen(str));