pull/8/head v1.6.5
Max-Plastix 2022-01-23 20:32:39 -08:00
rodzic 3e521ec7c3
commit 3bbefc69c0
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// -----------------------------------------------------------------------------
#define APP_NAME "Helium TTGO"
#define APP_VERSION "1.6.4 MaxP"
#define APP_VERSION "1.6.5 MaxP"
// -----------------------------------------------------------------------------
// Less common Configuration iteams

Wyświetl plik

@ -674,8 +674,10 @@ void setup() {
if (0 && wakeCause == ESP_SLEEP_WAKEUP_TIMER)
ssd1306_found = false; // forget we even have the hardware
// This creates the display object, so if we don't call it.. all screen ops are do-nothing.
if (ssd1306_found)
screen_setup();
is_screen_on = true;
// GPS power on, so it has time to setttle.
axp.setPowerOutPut(AXP192_LDO3, AXP202_ON);
@ -745,7 +747,7 @@ void update_activity() {
is_screen_on = false;
screen_off();
}
} else {
} else { // Else we had some recent activity. Turn on?
if (!is_screen_on && !screen_stay_off) {
is_screen_on = true;
screen_on();