mirror of https://github.com/rusefi/wideband.git
port.h: remove duplicate, GetConfiguratiuonSize() returns size_t (#152)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
parent
3147d6ab75
commit
9ec8d56e2b
|
@ -138,7 +138,7 @@ uint8_t *GetConfiguratiuonPtr()
|
||||||
return (uint8_t *)&config;
|
return (uint8_t *)&config;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetConfiguratiuonSize()
|
size_t GetConfiguratiuonSize()
|
||||||
{
|
{
|
||||||
return sizeof(config);
|
return sizeof(config);
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ uint8_t *GetConfiguratiuonPtr()
|
||||||
return (uint8_t *)&config;
|
return (uint8_t *)&config;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetConfiguratiuonSize()
|
size_t GetConfiguratiuonSize()
|
||||||
{
|
{
|
||||||
return sizeof(config);
|
return sizeof(config);
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,7 @@ uint8_t *GetConfiguratiuonPtr()
|
||||||
return (uint8_t *)&config;
|
return (uint8_t *)&config;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetConfiguratiuonSize()
|
size_t GetConfiguratiuonSize()
|
||||||
{
|
{
|
||||||
return sizeof(config);
|
return sizeof(config);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,12 +39,10 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
Configuration GetConfiguration();
|
Configuration GetConfiguration();
|
||||||
uint8_t *GetConfiguratiuonPtr();
|
|
||||||
int GetConfiguratiuonSize();
|
|
||||||
void SetConfiguration(const Configuration& newConfig);
|
void SetConfiguration(const Configuration& newConfig);
|
||||||
|
|
||||||
/* TS stuff */
|
/* TS stuff */
|
||||||
void SaveConfiguration();
|
|
||||||
uint8_t *GetConfiguratiuonPtr();
|
uint8_t *GetConfiguratiuonPtr();
|
||||||
int GetConfiguratiuonSize();
|
size_t GetConfiguratiuonSize();
|
||||||
|
void SaveConfiguration();
|
||||||
const char *getTsSignature();
|
const char *getTsSignature();
|
||||||
|
|
Loading…
Reference in New Issue