diff --git a/firmware/boards/f1_common/f1_port.cpp b/firmware/boards/f1_common/f1_port.cpp index 846a7e0..0ed23c6 100644 --- a/firmware/boards/f1_common/f1_port.cpp +++ b/firmware/boards/f1_common/f1_port.cpp @@ -34,7 +34,7 @@ void Configuration::LoadDefaults() int InitConfiguration() { - size_t size = GetConfiguratiuonSize(); + size_t size = GetConfigurationSize(); /* Starting EFL driver.*/ eflStart(&EFLD1, NULL); @@ -44,7 +44,7 @@ int InitConfiguration() mfsStart(&mfs1, &mfscfg1); mfs_error_t err = mfsReadRecord(&mfs1, MFS_CONFIGURATION_RECORD_ID, &size, GetConfiguratiuonPtr()); - if ((err != MFS_NO_ERROR) || (size != GetConfiguratiuonSize() || !cfg.IsValid())) { + if ((err != MFS_NO_ERROR) || (size != GetConfigurationSize() || !cfg.IsValid())) { /* load defaults */ cfg.LoadDefaults(); } @@ -65,7 +65,7 @@ void SetConfiguration() /* TS stuff */ void SaveConfiguration() { /* TODO: handle error */ - mfsWriteRecord(&mfs1, MFS_CONFIGURATION_RECORD_ID, GetConfiguratiuonSize(), GetConfiguratiuonPtr()); + mfsWriteRecord(&mfs1, MFS_CONFIGURATION_RECORD_ID, GetConfigurationSize(), GetConfiguratiuonPtr()); } uint8_t *GetConfiguratiuonPtr() @@ -73,7 +73,7 @@ uint8_t *GetConfiguratiuonPtr() return (uint8_t *)&cfg; } -size_t GetConfiguratiuonSize() +size_t GetConfigurationSize() { return sizeof(cfg); } diff --git a/firmware/boards/port.h b/firmware/boards/port.h index a2dd258..9f405f0 100644 --- a/firmware/boards/port.h +++ b/firmware/boards/port.h @@ -61,6 +61,6 @@ void SetConfiguration(); /* TS stuff */ uint8_t *GetConfiguratiuonPtr(); -size_t GetConfiguratiuonSize(); +size_t GetConfigurationSize(); void SaveConfiguration(); const char *getTsSignature(); diff --git a/firmware/console/binary/tunerstudio_commands.cpp b/firmware/console/binary/tunerstudio_commands.cpp index c305216..73af129 100644 --- a/firmware/console/binary/tunerstudio_commands.cpp +++ b/firmware/console/binary/tunerstudio_commands.cpp @@ -10,7 +10,7 @@ void sendErrorCode(TsChannelBase *tsChannel, uint8_t code); size_t getTunerStudioPageSize() { - return GetConfiguratiuonSize(); + return GetConfigurationSize(); } // Validate whether the specified offset and count would cause an overrun in the tune.