Nrf built issue fix

This commit is contained in:
HarukiToreda 2025-09-21 18:28:37 -04:00
parent cf9bc7ac00
commit d779821f0e
2 changed files with 8 additions and 2 deletions

View File

@ -91,7 +91,7 @@ void MessageStore::saveToFlash()
f.write((uint8_t *)&m.sender, sizeof(m.sender));
f.write((uint8_t *)&m.channelIndex, sizeof(m.channelIndex));
f.write((uint8_t *)&m.dest, sizeof(m.dest));
f.write((uint8_t *)m.text.c_str(), std::min(MAX_MESSAGE_SIZE, (uint32_t)m.text.size()));
f.write((uint8_t *)m.text.c_str(), std::min(static_cast<size_t>(MAX_MESSAGE_SIZE), m.text.size()));
f.write('\0'); // null terminator
}
spiLock->unlock();

View File

@ -1374,6 +1374,9 @@ void Screen::handleShowPrevFrame()
ui->previousFrame();
lastScreenTransition = millis();
setFastFramerate();
// Reset scroll state if were leaving the text message frame
graphics::MessageRenderer::resetScrollState();
}
}
@ -1385,6 +1388,9 @@ void Screen::handleShowNextFrame()
ui->nextFrame();
lastScreenTransition = millis();
setFastFramerate();
// Reset scroll state if were leaving the text message frame
graphics::MessageRenderer::resetScrollState();
}
}