mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
@@ -1,4 +1,4 @@
|
|||||||

|

|
||||||
# Unitemp - Universal temperature sensor reader
|
# Unitemp - Universal temperature sensor reader
|
||||||
[](https://github.com/quen0n/unitemp-flipperzero/releases/)
|
[](https://github.com/quen0n/unitemp-flipperzero/releases/)
|
||||||
[](https://github.com/quen0n/unitemp-flipperzero/blob/dev/LICENSE.md)
|
[](https://github.com/quen0n/unitemp-flipperzero/blob/dev/LICENSE.md)
|
||||||
@@ -7,7 +7,10 @@
|
|||||||
## List of supported sensors (supplemented)
|
## List of supported sensors (supplemented)
|
||||||

|

|
||||||
## Installation
|
## Installation
|
||||||
Copy the contents of the repository to the `applications/plugins/unitemp` folder and build the project. Flash FZ along with resources. [More...](https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/fbt.md)
|
1) Download [latest version](https://cloud.quenon.ru/index.php/s/h98rT9UnaOL4wxR/download?path=%2F&files=unitemp-latest.fap)
|
||||||
|
2) Copy `unitemp-latest.fap` to `SD card/apps/GPIO` with qFlipper or mobile application
|
||||||
|
3) Open application on your Flipper: `Applications->GPIO->Temp sensors reader`
|
||||||
|
Note: If you get the message "API version mismatch" after updating the firmware, download and install Unitemp again
|
||||||
## Some community photos
|
## Some community photos
|
||||||

|

|
||||||

|

|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -624,8 +624,10 @@ UnitempStatus unitemp_sensor_updateData(Sensor* sensor) {
|
|||||||
UNITEMP_DEBUG("Sensor %s update status %d", sensor->name, sensor->status);
|
UNITEMP_DEBUG("Sensor %s update status %d", sensor->name, sensor->status);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(app->settings.temp_unit == UT_TEMP_FAHRENHEIT && sensor->status == UT_SENSORSTATUS_OK)
|
if(app->settings.temp_unit == UT_TEMP_FAHRENHEIT && sensor->status == UT_SENSORSTATUS_OK) {
|
||||||
uintemp_celsiumToFarengate(sensor);
|
uintemp_celsiumToFarengate(sensor);
|
||||||
|
}
|
||||||
|
|
||||||
if(sensor->status == UT_SENSORSTATUS_OK) {
|
if(sensor->status == UT_SENSORSTATUS_OK) {
|
||||||
sensor->temp += sensor->temp_offset / 10.f;
|
sensor->temp += sensor->temp_offset / 10.f;
|
||||||
if(app->settings.pressure_unit == UT_PRESSURE_MM_HG) {
|
if(app->settings.pressure_unit == UT_PRESSURE_MM_HG) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -101,7 +101,8 @@ bool unitemp_BMP180_init(Sensor* sensor) {
|
|||||||
bmp180_instance->bmp180_cal.MC = (buff[18] << 8) | buff[19];
|
bmp180_instance->bmp180_cal.MC = (buff[18] << 8) | buff[19];
|
||||||
bmp180_instance->bmp180_cal.MD = (buff[20] << 8) | buff[21];
|
bmp180_instance->bmp180_cal.MD = (buff[20] << 8) | buff[21];
|
||||||
|
|
||||||
UNITEMP_DEBUG(
|
|
||||||
|
UNITEMP_DEBUG(
|
||||||
"Sensor BMP180 (0x%02X) calibration values: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",
|
"Sensor BMP180 (0x%02X) calibration values: %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d",
|
||||||
i2c_sensor->currentI2CAdr,
|
i2c_sensor->currentI2CAdr,
|
||||||
bmp180_instance->bmp180_cal.AC1,
|
bmp180_instance->bmp180_cal.AC1,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ UnitempStatus unitemp_HTU21x_update(Sensor* sensor) {
|
|||||||
sensor->hum = ((0.001907 * (raw ^ 0x02)) - 6);
|
sensor->hum = ((0.001907 * (raw ^ 0x02)) - 6);
|
||||||
}
|
}
|
||||||
temp_hum = !temp_hum;
|
temp_hum = !temp_hum;
|
||||||
|
if(temp_hum) return UT_SENSORSTATUS_EARLYPOOL;
|
||||||
return UT_SENSORSTATUS_OK;
|
return UT_SENSORSTATUS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -233,6 +233,8 @@ static bool unitemp_alloc(void) {
|
|||||||
*/
|
*/
|
||||||
static void unitemp_free(void) {
|
static void unitemp_free(void) {
|
||||||
popup_free(app->popup);
|
popup_free(app->popup);
|
||||||
|
//Удаление вида после обработки
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, UnitempViewPopup);
|
||||||
unitemp_widgets_free();
|
unitemp_widgets_free();
|
||||||
|
|
||||||
unitemp_SensorActions_free();
|
unitemp_SensorActions_free();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
//Имя приложения
|
//Имя приложения
|
||||||
#define APP_NAME "Unitemp"
|
#define APP_NAME "Unitemp"
|
||||||
//Версия приложения
|
//Версия приложения
|
||||||
#define UNITEMP_APP_VER "1.1.1-dev"
|
#define UNITEMP_APP_VER "1.1.2-dev"
|
||||||
//Путь хранения файлов плагина
|
//Путь хранения файлов плагина
|
||||||
#define APP_PATH_FOLDER "/ext/unitemp"
|
#define APP_PATH_FOLDER "/ext/unitemp"
|
||||||
//Имя файла с настройками
|
//Имя файла с настройками
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Обработка длинного нажатия "Ок"
|
||||||
|
if(event->key == InputKeyOk && event->type == InputTypeLong) {
|
||||||
|
app->settings.temp_unit = !app->settings.temp_unit;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -561,5 +565,6 @@ void unitemp_General_switch(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void unitemp_General_free(void) {
|
void unitemp_General_free(void) {
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, UnitempViewGeneral);
|
||||||
view_free(view);
|
view_free(view);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -42,5 +42,6 @@ void unitemp_SensorNameEdit_switch(Sensor* sensor) {
|
|||||||
view_dispatcher_switch_to_view(app->view_dispatcher, VIEW_ID);
|
view_dispatcher_switch_to_view(app->view_dispatcher, VIEW_ID);
|
||||||
}
|
}
|
||||||
void unitemp_SensorNameEdit_free(void) {
|
void unitemp_SensorNameEdit_free(void) {
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, VIEW_ID);
|
||||||
text_input_free(text_input);
|
text_input_free(text_input);
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Unitemp - Universal temperature reader
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -27,6 +27,7 @@ void unitemp_widgets_alloc(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void unitemp_widgets_free(void) {
|
void unitemp_widgets_free(void) {
|
||||||
|
view_dispatcher_remove_view(app->view_dispatcher, UnitempViewWidget);
|
||||||
widget_free(app->widget);
|
widget_free(app->widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user