|
|
@@ -8,7 +8,7 @@
|
|
|
#include <dialogs/dialogs.h>
|
|
|
#include <ir_remote_icons.h>
|
|
|
|
|
|
-#include <infrared/infrared_app.h>
|
|
|
+#include <infrared/infrared_settings.h>
|
|
|
#include <toolbox/saved_struct.h>
|
|
|
|
|
|
#include <notification/notification.h>
|
|
|
@@ -404,12 +404,7 @@ int32_t infrared_remote_app(char* p) {
|
|
|
|
|
|
bool otg_was_enabled = furi_hal_power_is_otg_enabled();
|
|
|
InfraredSettings settings = {0};
|
|
|
- saved_struct_load(
|
|
|
- INFRARED_SETTINGS_PATH,
|
|
|
- &settings,
|
|
|
- sizeof(InfraredSettings),
|
|
|
- INFRARED_SETTINGS_MAGIC,
|
|
|
- INFRARED_SETTINGS_VERSION);
|
|
|
+ infrared_settings_load(&settings);
|
|
|
if(settings.tx_pin < FuriHalInfraredTxPinMax) {
|
|
|
furi_hal_infrared_set_tx_output(settings.tx_pin);
|
|
|
if(settings.otg_enabled != otg_was_enabled) {
|