mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 10:42:49 +00:00
More cleanup
This commit is contained in:
@@ -1346,7 +1346,7 @@ int32_t CannedMessageModule::runOnce()
|
||||
this->freetext.substring(this->cursor);
|
||||
}
|
||||
this->cursor++;
|
||||
uint16_t maxChars = meshtastic_Constants_DATA_PAYLOAD_LEN - (moduleConfig.canned_message.send_bell ? 1 : 0);
|
||||
const uint16_t maxChars = 200 - (moduleConfig.canned_message.send_bell ? 1 : 0);
|
||||
if (this->freetext.length() > maxChars) {
|
||||
this->cursor = maxChars;
|
||||
this->freetext = this->freetext.substring(0, maxChars);
|
||||
|
||||
Reference in New Issue
Block a user