Merge pull request #30 from howard0su/save

Save more memory for menu subsystem
pull/33/head
threeme3 2020-10-10 12:06:05 +02:00 zatwierdzone przez GitHub
commit 48b659b923
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -2810,7 +2810,7 @@ void actionCommon(uint8_t action, uint8_t *ptr, uint8_t size) {
}
}
template<typename T> void paramAction(uint8_t action, T& value, uint8_t menuid, const __FlashStringHelper* label, const char* enumArray[], int32_t _min, int32_t _max, bool continuous){
template<typename T> void paramAction(uint8_t action, volatile T& value, uint8_t menuid, const __FlashStringHelper* label, const char* enumArray[], int32_t _min, int32_t _max, bool continuous){
switch(action){
case UPDATE:
case UPDATE_MENU:
@ -2835,6 +2835,7 @@ template<typename T> void paramAction(uint8_t action, T& value, uint8_t menuid,
break;
}
}
uint32_t save_event_time = 0;
uint32_t sec_event_time = 0;