Skip to content

Commit eae16cf

Browse files
committed
less unnecessary comments, less lines of code :)
1 parent 397d280 commit eae16cf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,12 +596,9 @@ void UITask::newMsg(uint8_t path_len, const char* from_name, const char* text, i
596596
setCurrScreen(msg_preview);
597597

598598
if (_display != NULL) {
599-
// Only turn on display if it's off AND not connected to phone via BLE
600-
// If connected to phone, user will see messages there, so don't wake the OLED
601599
if (!_display->isOn() && !hasConnection()) {
602600
_display->turnOn();
603601
}
604-
// Always extend auto-off timer and trigger refresh if display is on
605602
if (_display->isOn()) {
606603
_auto_off = millis() + AUTO_OFF_MILLIS; // extend the auto-off timer
607604
_next_refresh = 100; // trigger refresh

0 commit comments

Comments
 (0)