Revert infrared last settings + reworked the auto detect

This commit is contained in:
Sil333033
2024-01-28 00:54:19 +01:00
parent 230bb2d12d
commit d3e59badbe
8 changed files with 213 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
#pragma once
#include <furi_hal.h>
#include <storage/storage.h>
#include <lib/flipper_format/flipper_format.h>
typedef struct {
bool ext_5v;
bool ext_out;
bool auto_detect;
} InfraredLastSettings;
InfraredLastSettings* infrared_last_settings_alloc(void);
void infrared_last_settings_free(InfraredLastSettings* instance);
void infrared_last_settings_load(InfraredLastSettings* instance);
bool infrared_last_settings_save(InfraredLastSettings* instance);