mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user