mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 09:43:03 +00:00
trunk fmt
This commit is contained in:
@@ -382,14 +382,12 @@ static void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state
|
|||||||
|
|
||||||
tm *tm = localtime(reinterpret_cast<const time_t *>(&mp.rx_time));
|
tm *tm = localtime(reinterpret_cast<const time_t *>(&mp.rx_time));
|
||||||
|
|
||||||
if(config.display.heading_bold) {
|
if (config.display.heading_bold) {
|
||||||
display->drawStringf(1 + x, 0 + y, tempBuf, "[%02d:%02d:%02d] From: %s",
|
display->drawStringf(1 + x, 0 + y, tempBuf, "[%02d:%02d:%02d] From: %s", tm->tm_hour, tm->tm_min, tm->tm_sec,
|
||||||
tm->tm_hour, tm->tm_min, tm->tm_sec,
|
(node && node->has_user) ? node->user.short_name : "???");
|
||||||
(node && node->has_user) ? node->user.short_name : "???");
|
|
||||||
}
|
}
|
||||||
display->drawStringf(0 + x, 0 + y, tempBuf, "[%02d:%02d:%02d] From: %s",
|
display->drawStringf(0 + x, 0 + y, tempBuf, "[%02d:%02d:%02d] From: %s", tm->tm_hour, tm->tm_min, tm->tm_sec,
|
||||||
tm->tm_hour, tm->tm_min, tm->tm_sec,
|
(node && node->has_user) ? node->user.short_name : "???");
|
||||||
(node && node->has_user) ? node->user.short_name : "???");
|
|
||||||
|
|
||||||
display->setColor(WHITE);
|
display->setColor(WHITE);
|
||||||
snprintf(tempBuf, sizeof(tempBuf), "%s", mp.decoded.payload.bytes);
|
snprintf(tempBuf, sizeof(tempBuf), "%s", mp.decoded.payload.bytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user