mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
RGB Backlight: Fix config migration
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
### Fixed:
|
### Fixed:
|
||||||
- Desktop: Fix disabling keybinds (by @Willy-JL)
|
- Desktop: Fix disabling keybinds (by @Willy-JL)
|
||||||
- Settings: Fix duplicates in Power Settings when opening submenus (by @Willy-JL)
|
- Settings: Fix duplicates in Power Settings when opening submenus (by @Willy-JL)
|
||||||
|
- RGB Backlight: Fix config migration (by @Willy-JL)
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ static void flipper_print_version(const char* target, const Version* version) {
|
|||||||
#include <loader/loader_menu.h>
|
#include <loader/loader_menu.h>
|
||||||
#include <notification/notification_settings_filename.h>
|
#include <notification/notification_settings_filename.h>
|
||||||
#include <power/power_settings_filename.h>
|
#include <power/power_settings_filename.h>
|
||||||
|
#include <drivers/rgb_backlight_filename.h>
|
||||||
#include <applications/main/infrared/infrared_app.h>
|
#include <applications/main/infrared/infrared_app.h>
|
||||||
#include <applications/main/u2f/u2f_data.h>
|
#include <applications/main/u2f/u2f_data.h>
|
||||||
|
|
||||||
@@ -82,6 +83,7 @@ void flipper_migrate_files() {
|
|||||||
{EXT_PATH(".config/xtreme_settings.txt"), MOMENTUM_SETTINGS_PATH},
|
{EXT_PATH(".config/xtreme_settings.txt"), MOMENTUM_SETTINGS_PATH},
|
||||||
{EXT_PATH(".config/notification.settings"), NOTIFICATION_SETTINGS_PATH},
|
{EXT_PATH(".config/notification.settings"), NOTIFICATION_SETTINGS_PATH},
|
||||||
{EXT_PATH(".config/power.settings"), POWER_SETTINGS_PATH},
|
{EXT_PATH(".config/power.settings"), POWER_SETTINGS_PATH},
|
||||||
|
{EXT_PATH(".config/rgb_backlight.settings"), RGB_BACKLIGHT_SETTINGS_PATH},
|
||||||
{EXT_PATH("dolphin/name.txt"), NAMESPOOF_PATH}, // Adapt to UL
|
{EXT_PATH("dolphin/name.txt"), NAMESPOOF_PATH}, // Adapt to UL
|
||||||
{EXT_PATH("infrared/.infrared.settings"), INFRARED_SETTINGS_PATH}, // Adapt to OFW
|
{EXT_PATH("infrared/.infrared.settings"), INFRARED_SETTINGS_PATH}, // Adapt to OFW
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,13 +18,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "rgb_backlight.h"
|
#include "rgb_backlight.h"
|
||||||
|
#include "rgb_backlight_filename.h"
|
||||||
|
|
||||||
#include <furi_hal.h>
|
#include <furi_hal.h>
|
||||||
#include <storage/storage.h>
|
#include <storage/storage.h>
|
||||||
#include <toolbox/saved_struct.h>
|
#include <toolbox/saved_struct.h>
|
||||||
|
|
||||||
#define RGB_BACKLIGHT_SETTINGS_MAGIC 0x15
|
#define RGB_BACKLIGHT_SETTINGS_MAGIC 0x15
|
||||||
#define RGB_BACKLIGHT_SETTINGS_VERSION 6
|
#define RGB_BACKLIGHT_SETTINGS_VERSION 6
|
||||||
#define RGB_BACKLIGHT_SETTINGS_PATH INT_PATH(".rgb_backlight.settings")
|
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
RgbColor colors[SK6805_LED_COUNT];
|
RgbColor colors[SK6805_LED_COUNT];
|
||||||
|
|||||||
3
lib/drivers/rgb_backlight_filename.h
Normal file
3
lib/drivers/rgb_backlight_filename.h
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define RGB_BACKLIGHT_SETTINGS_PATH INT_PATH(".rgb_backlight.settings")
|
||||||
Reference in New Issue
Block a user