сборка nRF52 после переноса 1.18.0: убран нескачиваемый пин тулчейна, часы в UI берём из rtc_clock

This commit is contained in:
shade committed 2026-10-15 20:04:11 +03:00
1 parent 30095f4580
commit bf1e2b852a
2 files changed
+5 -6

No files matched your search

+5 -5
View File
@@ -1761,9 +1761,9 @@ void UITask::queueMsg(uint8_t path_len, const char* from_name, const char* text)
// Показывать ли входящее сразу: тихие часы и настройка Popups.
// Если нет — сообщение только попадает в непрочитанные (счётчик на первом экране).
static bool showIncomingNow(NodePrefs* prefs, mesh::RTCClock* rtc, bool channel_popup) {
static bool showIncomingNow(NodePrefs* prefs, uint32_t utc, bool channel_popup) {
if (!prefs->msg_popup) return false;
if (prefs->isQuietNow(rtc->getCurrentTime())) return false;
if (prefs->isQuietNow(utc)) return false;
return channel_popup;
}
@@ -1774,7 +1774,7 @@ void UITask::onMessageRecv(mesh::Packet *pkt, const ContactInfo &from, uint8_t t
uint8_t path_len = pkt->isRouteFlood() ? pkt->path_len : 0xFF;
queueMsg(path_len, from.name, text);
if (!showIncomingNow(_node_prefs, _rtc, true)) {
if (!showIncomingNow(_node_prefs, rtc_clock.getCurrentTime(), true)) {
_msg_pending = true;
_next_refresh = 100; // чтобы обновился счётчик на первом экране
return;
@@ -1812,7 +1812,7 @@ void UITask::onChannelMessageRecv(mesh::Packet *pkt, ChannelDetails& channel_det
uint8_t path_len = pkt->isRouteFlood() ? pkt->path_len : 0xFF;
queueMsg(path_len, channel_details.name, text);
if (!showIncomingNow(_node_prefs, _rtc, ch_mode == CH_MODE_POPUP)) {
if (!showIncomingNow(_node_prefs, rtc_clock.getCurrentTime(), ch_mode == CH_MODE_POPUP)) {
_msg_pending = true;
_next_refresh = 100;
return;
@@ -1840,7 +1840,7 @@ void UITask::onChannelMessageRecv(mesh::Packet *pkt, ChannelDetails& channel_det
void UITask::onDiscoveredContact(ContactInfo &contact, bool is_new, uint8_t path_len, const uint8_t* path) {
// тихие часы глушат и уведомление о новом контакте
if (!hasConnection() && !_node_prefs->isQuietNow(_rtc->getCurrentTime())) {
if (!hasConnection() && !_node_prefs->isQuietNow(rtc_clock.getCurrentTime())) {
notify(UIEventType::newContactMessage);
}
}
-1
View File
@@ -86,7 +86,6 @@ platform_packages =
; https://github.com/meshcore-dev/MeshCore/pull/1177
; https://github.com/meshcore-dev/MeshCore/pull/1295
framework-arduinoadafruitnrf52 @ https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301665b40959682252911e57b11df3ee651a
platformio/toolchain-gccarmnoneeabi@^1.140201.0
extra_scripts = create-uf2.py
build_flags = ${arduino_base.build_flags}
-D NRF52_PLATFORM