mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
Fix outbound labels based to avoid creating delays
This commit is contained in:
@@ -466,16 +466,7 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|||||||
// Final header line
|
// Final header line
|
||||||
char headerStr[96];
|
char headerStr[96];
|
||||||
if (mine) {
|
if (mine) {
|
||||||
if (m.ackStatus == AckStatus::ACKED) {
|
snprintf(headerStr, sizeof(headerStr), "%s %s", timeBuf, chanType);
|
||||||
// Destination ACK
|
|
||||||
snprintf(headerStr, sizeof(headerStr), "Sent %s %s", timeBuf, chanType);
|
|
||||||
} else if (m.ackStatus == AckStatus::NACKED || m.ackStatus == AckStatus::TIMEOUT) {
|
|
||||||
// Failure or timeout
|
|
||||||
snprintf(headerStr, sizeof(headerStr), "Failed %s %s", timeBuf, chanType);
|
|
||||||
} else if (m.ackStatus == AckStatus::RELAYED) {
|
|
||||||
// Relay ACK
|
|
||||||
snprintf(headerStr, sizeof(headerStr), "Relayed %s %s", timeBuf, chanType);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
snprintf(headerStr, sizeof(headerStr), "%s @%s %s", timeBuf, sender, chanType);
|
snprintf(headerStr, sizeof(headerStr), "%s @%s %s", timeBuf, sender, chanType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user