mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
even less comments \o/
This commit is contained in:
parent
eae16cfc5f
commit
99a3473169
1 changed files with 0 additions and 3 deletions
|
|
@ -136,12 +136,9 @@ void UITask::newMsg(uint8_t path_len, const char* from_name, const char* text, i
|
|||
StrHelper::strncpy(_msg, text, sizeof(_msg));
|
||||
|
||||
if (_display != NULL) {
|
||||
// Only turn on display if it's off AND not connected to phone via BLE
|
||||
// If connected to phone, user will see messages there, so don't wake the OLED
|
||||
if (!_display->isOn() && !hasConnection()) {
|
||||
_display->turnOn();
|
||||
}
|
||||
// Always extend auto-off timer and trigger refresh if display is on
|
||||
if (_display->isOn()) {
|
||||
_auto_off = millis() + AUTO_OFF_MILLIS; // extend the auto-off timer
|
||||
_need_refresh = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue