mirror of https://github.com/rusefi/wideband.git
spelling
This commit is contained in:
parent
85365bcb68
commit
36c0c3e4ab
|
@ -34,7 +34,7 @@ void Configuration::LoadDefaults()
|
||||||
|
|
||||||
int InitConfiguration()
|
int InitConfiguration()
|
||||||
{
|
{
|
||||||
size_t size = GetConfiguratiuonSize();
|
size_t size = GetConfigurationSize();
|
||||||
|
|
||||||
/* Starting EFL driver.*/
|
/* Starting EFL driver.*/
|
||||||
eflStart(&EFLD1, NULL);
|
eflStart(&EFLD1, NULL);
|
||||||
|
@ -44,7 +44,7 @@ int InitConfiguration()
|
||||||
mfsStart(&mfs1, &mfscfg1);
|
mfsStart(&mfs1, &mfscfg1);
|
||||||
|
|
||||||
mfs_error_t err = mfsReadRecord(&mfs1, MFS_CONFIGURATION_RECORD_ID, &size, GetConfiguratiuonPtr());
|
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 */
|
/* load defaults */
|
||||||
cfg.LoadDefaults();
|
cfg.LoadDefaults();
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ void SetConfiguration()
|
||||||
/* TS stuff */
|
/* TS stuff */
|
||||||
void SaveConfiguration() {
|
void SaveConfiguration() {
|
||||||
/* TODO: handle error */
|
/* TODO: handle error */
|
||||||
mfsWriteRecord(&mfs1, MFS_CONFIGURATION_RECORD_ID, GetConfiguratiuonSize(), GetConfiguratiuonPtr());
|
mfsWriteRecord(&mfs1, MFS_CONFIGURATION_RECORD_ID, GetConfigurationSize(), GetConfiguratiuonPtr());
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t *GetConfiguratiuonPtr()
|
uint8_t *GetConfiguratiuonPtr()
|
||||||
|
@ -73,7 +73,7 @@ uint8_t *GetConfiguratiuonPtr()
|
||||||
return (uint8_t *)&cfg;
|
return (uint8_t *)&cfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t GetConfiguratiuonSize()
|
size_t GetConfigurationSize()
|
||||||
{
|
{
|
||||||
return sizeof(cfg);
|
return sizeof(cfg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,6 @@ void SetConfiguration();
|
||||||
|
|
||||||
/* TS stuff */
|
/* TS stuff */
|
||||||
uint8_t *GetConfiguratiuonPtr();
|
uint8_t *GetConfiguratiuonPtr();
|
||||||
size_t GetConfiguratiuonSize();
|
size_t GetConfigurationSize();
|
||||||
void SaveConfiguration();
|
void SaveConfiguration();
|
||||||
const char *getTsSignature();
|
const char *getTsSignature();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
void sendErrorCode(TsChannelBase *tsChannel, uint8_t code);
|
void sendErrorCode(TsChannelBase *tsChannel, uint8_t code);
|
||||||
|
|
||||||
size_t getTunerStudioPageSize() {
|
size_t getTunerStudioPageSize() {
|
||||||
return GetConfiguratiuonSize();
|
return GetConfigurationSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate whether the specified offset and count would cause an overrun in the tune.
|
// Validate whether the specified offset and count would cause an overrun in the tune.
|
||||||
|
|
Loading…
Reference in New Issue