Update UniTemp

https://github.com/quen0n/unitemp-flipperzero/tree/dev
This commit is contained in:
MX
2023-01-18 19:51:10 +03:00
parent 62b287aac7
commit 7a211e0018
34 changed files with 53 additions and 37 deletions

View File

@@ -1,6 +1,6 @@
/*
Unitemp - Universal temperature reader
Copyright (C) 2022 Victor Nikitchuk (https://github.com/quen0n)
Copyright (C) 2022-2023 Victor Nikitchuk (https://github.com/quen0n)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -542,6 +542,10 @@ static bool _input_callback(InputEvent* event, void* context) {
return true;
}
}
//Обработка длинного нажатия "Ок"
if(event->key == InputKeyOk && event->type == InputTypeLong) {
app->settings.temp_unit = !app->settings.temp_unit;
}
return true;
}
@@ -561,5 +565,6 @@ void unitemp_General_switch(void) {
}
void unitemp_General_free(void) {
view_dispatcher_remove_view(app->view_dispatcher, UnitempViewGeneral);
view_free(view);
}