This commit is contained in:
ESurge
2022-11-04 14:27:54 -07:00
7 changed files with 4 additions and 9 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-5
View File
@@ -68,11 +68,6 @@ static void dice_render_callback(Canvas* const canvas, void* ctx) {
}
}
if(state->letsRoll) {
static bool rand_generator_inited = false;
if(!rand_generator_inited) {
srand(furi_get_tick());
rand_generator_inited = true;
}
furi_hal_rtc_get_datetime(&state->datetime);
uint8_t hour = state->datetime.hour;
char strAMPM[3];
@@ -1,14 +1,14 @@
#include "../power_settings_app.h"
#include <lib/toolbox/value_index.h>
#define SHUTDOWN_IDLE_DELAY_COUNT 8
#define SHUTDOWN_IDLE_DELAY_COUNT 9
#define SCENE_EVENT_SELECT_SHUTDOWN_IDLE_DELAY 0
const char* const shutdown_idle_delay_text[SHUTDOWN_IDLE_DELAY_COUNT] =
{"OFF", "15min", "30min", "1h", "6h", "12h", "24h", "48h"};
{"OFF", "15min", "30min", "1h", "2h", "6h", "12h", "24h", "48h"};
const uint32_t shutdown_idle_delay_value[SHUTDOWN_IDLE_DELAY_COUNT] =
{0, 900000, 1800000, 3600000, 21600000, 43200000, 86400000, 172800000};
{0, 900000, 1800000, 3600000, 7200000, 21600000, 43200000, 86400000, 172800000};
static void power_settings_scene_shutodwn_idle_callback(void* context, uint32_t index) {
PowerSettingsApp* app = context;
+1 -1
View File
@@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,8.42,,
Version,+,8.41,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
1 entry status name type params
2 Version + 8.42 8.41
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h