Parcourir la source

Merge totp from https://github.com/akopachov/flipper-zero_authenticator

Willy-JL il y a 10 mois
Parent
commit
80d0cc3acb

+ 1 - 1
totp/.gitsubtree

@@ -1,2 +1,2 @@
 https://github.com/xMasterX/all-the-plugins dev base_pack/totp 6925308df62214abd3e19982444dc733cf098d92
-https://github.com/akopachov/flipper-zero_authenticator master totp a3f0584d97a4f9fb69c9670e9c2f07cc067b34d9
+https://github.com/akopachov/flipper-zero_authenticator master totp a8f53e4cecf8f24d68c7e86bc866b9bc35a61b85

+ 4 - 0
totp/.ofwcatalog/CHANGELOG.md

@@ -1,5 +1,9 @@
 # Changelog
 
+## v5.17.0 - 27 Feb 2025
+
+* feat: Extended valid UTC offset range to be from -12 to +14 ([#249](https://github.com/akopachov/flipper-zero_authenticator/issues/249))
+
 ## v5.16.1 - 22 Oct 2024
 
 * Fixed compatibility with latest FW changes ([#243](https://github.com/akopachov/flipper-zero_authenticator/issues/243))

+ 1 - 1
totp/application.fam

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

+ 2 - 2
totp/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)) {
         char* 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);
             plugin_state->timezone_offset = tz;
             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() {
     return &plugin_descriptor;
-}
+}

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

@@ -370,7 +370,7 @@ bool totp_scene_app_settings_handle_event(
         case InputKeyRight:
             if(scene_state->selected_control == HoursInput) {
                 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) {
                 totp_roll_value_uint8_t(
                     &scene_state->tz_offset_minutes, 15, 0, 45, RollOverflowBehaviorRoll);
@@ -421,7 +421,7 @@ bool totp_scene_app_settings_handle_event(
         case InputKeyLeft:
             if(scene_state->selected_control == HoursInput) {
                 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) {
                 totp_roll_value_uint8_t(
                     &scene_state->tz_offset_minutes, -15, 0, 45, RollOverflowBehaviorRoll);

+ 2 - 2
totp/version.h

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