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:
@@ -18,13 +18,14 @@
|
||||
*/
|
||||
|
||||
#include "rgb_backlight.h"
|
||||
#include "rgb_backlight_filename.h"
|
||||
|
||||
#include <furi_hal.h>
|
||||
#include <storage/storage.h>
|
||||
#include <toolbox/saved_struct.h>
|
||||
|
||||
#define RGB_BACKLIGHT_SETTINGS_MAGIC 0x15
|
||||
#define RGB_BACKLIGHT_SETTINGS_VERSION 6
|
||||
#define RGB_BACKLIGHT_SETTINGS_PATH INT_PATH(".rgb_backlight.settings")
|
||||
|
||||
static struct {
|
||||
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