MX 10 miesięcy temu
rodzic
commit
431a5f419f

+ 1 - 1
application.fam

@@ -7,7 +7,7 @@ App(
     requires=["gui", "cli", "dialogs", "storage", "input", "notification", "bt"],
     requires=["gui", "cli", "dialogs", "storage", "input", "notification", "bt"],
     stack_size=2 * 1024,
     stack_size=2 * 1024,
     order=20,
     order=20,
-    fap_version="5.160",
+    fap_version="5.170",
     fap_author="Alexander Kopachov (@akopachov)",
     fap_author="Alexander Kopachov (@akopachov)",
     fap_description="Software-based TOTP/HOTP authenticator for Flipper Zero device",
     fap_description="Software-based TOTP/HOTP authenticator for Flipper Zero device",
     fap_weburl="https://github.com/akopachov/flipper-zero_authenticator",
     fap_weburl="https://github.com/akopachov/flipper-zero_authenticator",

+ 2 - 2
cli/plugins/timezone/timezone.c

@@ -17,7 +17,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) {
     if(args_read_string_and_trim(args, temp_str)) {
     if(args_read_string_and_trim(args, temp_str)) {
         char* strtof_endptr;
         char* strtof_endptr;
         float tz = strtof(furi_string_get_cstr(temp_str), &strtof_endptr);
         float tz = strtof(furi_string_get_cstr(temp_str), &strtof_endptr);
-        if(*strtof_endptr == 0 && tz >= -12.75f && tz <= 12.75f) {
+        if(*strtof_endptr == 0 && tz >= -12.75f && tz <= 14.75f) {
             TOTP_CLI_LOCK_UI(plugin_state);
             TOTP_CLI_LOCK_UI(plugin_state);
             plugin_state->timezone_offset = tz;
             plugin_state->timezone_offset = tz;
             if(totp_config_file_update_timezone_offset(plugin_state)) {
             if(totp_config_file_update_timezone_offset(plugin_state)) {
@@ -46,4 +46,4 @@ static const FlipperAppPluginDescriptor plugin_descriptor = {
 
 
 const FlipperAppPluginDescriptor* totp_cli_timezone_plugin_ep() {
 const FlipperAppPluginDescriptor* totp_cli_timezone_plugin_ep() {
     return &plugin_descriptor;
     return &plugin_descriptor;
-}
+}

+ 2 - 2
ui/scenes/app_settings/totp_app_settings.c

@@ -368,7 +368,7 @@ bool totp_scene_app_settings_handle_event(
         case InputKeyRight:
         case InputKeyRight:
             if(scene_state->selected_control == HoursInput) {
             if(scene_state->selected_control == HoursInput) {
                 totp_roll_value_int8_t(
                 totp_roll_value_int8_t(
-                    &scene_state->tz_offset_hours, 1, -12, 12, RollOverflowBehaviorStop);
+                    &scene_state->tz_offset_hours, 1, -12, 14, RollOverflowBehaviorStop);
             } else if(scene_state->selected_control == MinutesInput) {
             } else if(scene_state->selected_control == MinutesInput) {
                 totp_roll_value_uint8_t(
                 totp_roll_value_uint8_t(
                     &scene_state->tz_offset_minutes, 15, 0, 45, RollOverflowBehaviorRoll);
                     &scene_state->tz_offset_minutes, 15, 0, 45, RollOverflowBehaviorRoll);
@@ -419,7 +419,7 @@ bool totp_scene_app_settings_handle_event(
         case InputKeyLeft:
         case InputKeyLeft:
             if(scene_state->selected_control == HoursInput) {
             if(scene_state->selected_control == HoursInput) {
                 totp_roll_value_int8_t(
                 totp_roll_value_int8_t(
-                    &scene_state->tz_offset_hours, -1, -12, 12, RollOverflowBehaviorStop);
+                    &scene_state->tz_offset_hours, -1, -12, 14, RollOverflowBehaviorStop);
             } else if(scene_state->selected_control == MinutesInput) {
             } else if(scene_state->selected_control == MinutesInput) {
                 totp_roll_value_uint8_t(
                 totp_roll_value_uint8_t(
                     &scene_state->tz_offset_minutes, -15, 0, 45, RollOverflowBehaviorRoll);
                     &scene_state->tz_offset_minutes, -15, 0, 45, RollOverflowBehaviorRoll);

+ 1 - 1
version.h

@@ -1,5 +1,5 @@
 #pragma once
 #pragma once
 
 
 #define TOTP_APP_VERSION_MAJOR (5)
 #define TOTP_APP_VERSION_MAJOR (5)
-#define TOTP_APP_VERSION_MINOR (16)
+#define TOTP_APP_VERSION_MINOR (17)
 #define TOTP_APP_VERSION_PATCH (0)
 #define TOTP_APP_VERSION_PATCH (0)