diff --git a/applications/main/xtreme_app/xtreme_app.c b/applications/main/xtreme_app/xtreme_app.c index 6804dd0c3..dc59d0542 100644 --- a/applications/main/xtreme_app/xtreme_app.c +++ b/applications/main/xtreme_app/xtreme_app.c @@ -176,8 +176,8 @@ XtremeApp* xtreme_app_alloc() { storage_file_free(folder); furi_record_close(RECORD_STORAGE); - app->version_tag = furi_string_alloc_printf( - "%s %s", version_get_version(NULL), version_get_builddate(NULL)); + app->version_tag = + furi_string_alloc_printf("%s %s", version_get_version(NULL), version_get_builddate(NULL)); return app; } diff --git a/applications/services/gui/gui.c b/applications/services/gui/gui.c index 8e3c432c5..eee32b6eb 100644 --- a/applications/services/gui/gui.c +++ b/applications/services/gui/gui.c @@ -328,20 +328,20 @@ static void gui_input(Gui* gui, InputEvent* input_event) { if(XTREME_SETTINGS()->left_handed) { switch(input_event->key) { - case InputKeyUp: - input_event->key = InputKeyDown; - break; - case InputKeyDown: - input_event->key = InputKeyUp; - break; - case InputKeyLeft: - input_event->key = InputKeyRight; - break; - case InputKeyRight: - input_event->key = InputKeyLeft; - break; - default: - break; + case InputKeyUp: + input_event->key = InputKeyDown; + break; + case InputKeyDown: + input_event->key = InputKeyUp; + break; + case InputKeyLeft: + input_event->key = InputKeyRight; + break; + case InputKeyRight: + input_event->key = InputKeyLeft; + break; + default: + break; } } diff --git a/applications/settings/notification_settings/notification_settings_app.c b/applications/settings/notification_settings/notification_settings_app.c index fdd257c18..23ed4ac67 100644 --- a/applications/settings/notification_settings/notification_settings_app.c +++ b/applications/settings/notification_settings/notification_settings_app.c @@ -22,50 +22,12 @@ static const NotificationSequence sequence_note_c = { #define BACKLIGHT_COUNT 21 const char* const backlight_text[BACKLIGHT_COUNT] = { - "0%", - "5%", - "10%", - "15%", - "20%", - "25%", - "30%", - "35%", - "40%", - "45%", - "50%", - "55%", - "60%", - "65%", - "70%", - "75%", - "80%", - "85%", - "90%", - "95%", - "100%", + "0%", "5%", "10%", "15%", "20%", "25%", "30%", "35%", "40%", "45%", "50%", + "55%", "60%", "65%", "70%", "75%", "80%", "85%", "90%", "95%", "100%", }; const float backlight_value[BACKLIGHT_COUNT] = { - 0.00f, - 0.05f, - 0.10f, - 0.15f, - 0.20f, - 0.25f, - 0.30f, - 0.35f, - 0.40f, - 0.45f, - 0.50f, - 0.55f, - 0.60f, - 0.65f, - 0.70f, - 0.75f, - 0.80f, - 0.85f, - 0.90f, - 0.95f, - 1.00f, + 0.00f, 0.05f, 0.10f, 0.15f, 0.20f, 0.25f, 0.30f, 0.35f, 0.40f, 0.45f, 0.50f, + 0.55f, 0.60f, 0.65f, 0.70f, 0.75f, 0.80f, 0.85f, 0.90f, 0.95f, 1.00f, }; #define VOLUME_COUNT 5 diff --git a/lib/STM32CubeWB.scons b/lib/STM32CubeWB.scons index cbdde9814..a1b484ad1 100644 --- a/lib/STM32CubeWB.scons +++ b/lib/STM32CubeWB.scons @@ -14,9 +14,15 @@ env.Append( "USE_FULL_LL_DRIVER", ], SDK_HEADERS=[ - *env.GlobRecursive("*_ll_*.h", "#/lib/STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Inc/", exclude="*usb.h"), + *env.GlobRecursive( + "*_ll_*.h", + "#/lib/STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Inc/", + exclude="*usb.h", + ), File("STM32CubeWB/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h"), - File("STM32CubeWB/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h"), + File( + "STM32CubeWB/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h" + ), ], ) diff --git a/scripts/sconsdist.py b/scripts/sconsdist.py index 0fa120d87..ce261954c 100644 --- a/scripts/sconsdist.py +++ b/scripts/sconsdist.py @@ -166,11 +166,13 @@ class Main(App): ) ) bundle_args.extend(self.other_args) - log_custom_fz_name = ( - environ.get("CUSTOM_FLIPPER_NAME", None) - or "" - ) - if (log_custom_fz_name != "") and (len(log_custom_fz_name) <= 8) and (log_custom_fz_name.isalnum()) and (log_custom_fz_name.isascii()): + log_custom_fz_name = environ.get("CUSTOM_FLIPPER_NAME", None) or "" + if ( + (log_custom_fz_name != "") + and (len(log_custom_fz_name) <= 8) + and (log_custom_fz_name.isalnum()) + and (log_custom_fz_name.isascii()) + ): self.logger.info( f"Flipper Custom Name is set:\n\tName: {log_custom_fz_name} : length - {len(log_custom_fz_name)} chars" ) diff --git a/scripts/version.py b/scripts/version.py index 6ae83099d..5cdd16138 100644 --- a/scripts/version.py +++ b/scripts/version.py @@ -34,25 +34,20 @@ class GitVersion: branch_num = self._exec_git("rev-list --count HEAD") or "n/a" - version = ( - os.environ.get("DIST_SUFFIX", None) - or VERSION - or "unknown" - ) + version = os.environ.get("DIST_SUFFIX", None) or VERSION or "unknown" - custom_fz_name = ( - os.environ.get("CUSTOM_FLIPPER_NAME", None) - or "" - ) + custom_fz_name = os.environ.get("CUSTOM_FLIPPER_NAME", None) or "" - force_no_dirty = ( - os.environ.get("FORCE_NO_DIRTY", None) - or "" - ) - if (force_no_dirty != ""): + force_no_dirty = os.environ.get("FORCE_NO_DIRTY", None) or "" + if force_no_dirty != "": dirty = False - if (custom_fz_name != "") and (len(custom_fz_name) <= 8) and (custom_fz_name.isalnum()) and (custom_fz_name.isascii()): + if ( + (custom_fz_name != "") + and (len(custom_fz_name) <= 8) + and (custom_fz_name.isalnum()) + and (custom_fz_name.isascii()) + ): return { "GIT_COMMIT": commit, "GIT_BRANCH": branch,