mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 15:48:35 -07:00
Revert "Default expansion UART listen to off for now"
This reverts commit bbcff48517.
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include <storage/storage.h>
|
#include <storage/storage.h>
|
||||||
#include <toolbox/saved_struct.h>
|
#include <toolbox/saved_struct.h>
|
||||||
#include <furi_hal_serial.h>
|
|
||||||
|
|
||||||
#include "expansion_settings_filename.h"
|
#include "expansion_settings_filename.h"
|
||||||
|
|
||||||
@@ -11,15 +10,12 @@
|
|||||||
|
|
||||||
bool expansion_settings_load(ExpansionSettings* settings) {
|
bool expansion_settings_load(ExpansionSettings* settings) {
|
||||||
furi_assert(settings);
|
furi_assert(settings);
|
||||||
if(!saved_struct_load(
|
return saved_struct_load(
|
||||||
EXPANSION_SETTINGS_PATH,
|
EXPANSION_SETTINGS_PATH,
|
||||||
settings,
|
settings,
|
||||||
sizeof(ExpansionSettings),
|
sizeof(ExpansionSettings),
|
||||||
EXPANSION_SETTINGS_MAGIC,
|
EXPANSION_SETTINGS_MAGIC,
|
||||||
EXPANSION_SETTINGS_VERSION)) {
|
EXPANSION_SETTINGS_VERSION);
|
||||||
settings->uart_index = FuriHalSerialIdMax;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool expansion_settings_save(ExpansionSettings* settings) {
|
bool expansion_settings_save(ExpansionSettings* settings) {
|
||||||
|
|||||||
Reference in New Issue
Block a user