mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Rename settings related functions from snake_case to camelCase
Fits better with INAV code conventions Renamed functions: - setting_get_name -> settingGetName - setting_name_contains -> settingNameContains - setting_name_exact_match -> settingNameIsExactMatch - setting_find -> settingFind - setting_get_value_size -> settingGetValueSize - setting_get_pgn -> settingGetPgn - setting_get_value_pointer -> settingGetValuePointer - setting_get_copy_value_pointer -> settingGetCopyValuePointer - setting_get_min -> settingGetMin - setting_get_max -> settingGetMax
This commit is contained in:
parent
070560d385
commit
2227580965
5 changed files with 51 additions and 51 deletions
|
@ -2578,7 +2578,7 @@ static const setting_t *mspReadSettingName(sbuf_t *src)
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
return setting_find(name);
|
||||
return settingFind(name);
|
||||
}
|
||||
|
||||
static bool mspSettingCommand(sbuf_t *dst, sbuf_t *src)
|
||||
|
@ -2588,8 +2588,8 @@ static bool mspSettingCommand(sbuf_t *dst, sbuf_t *src)
|
|||
return false;
|
||||
}
|
||||
|
||||
const void *ptr = setting_get_value_pointer(setting);
|
||||
size_t size = setting_get_value_size(setting);
|
||||
const void *ptr = settingGetValuePointer(setting);
|
||||
size_t size = settingGetValueSize(setting);
|
||||
sbufWriteDataSafe(dst, ptr, size);
|
||||
return true;
|
||||
}
|
||||
|
@ -2603,10 +2603,10 @@ static bool mspSetSettingCommand(sbuf_t *dst, sbuf_t *src)
|
|||
return false;
|
||||
}
|
||||
|
||||
setting_min_t min = setting_get_min(setting);
|
||||
setting_max_t max = setting_get_max(setting);
|
||||
setting_min_t min = settingGetMin(setting);
|
||||
setting_max_t max = settingGetMax(setting);
|
||||
|
||||
void *ptr = setting_get_value_pointer(setting);
|
||||
void *ptr = settingGetValuePointer(setting);
|
||||
switch (SETTING_TYPE(setting)) {
|
||||
case VAR_UINT8:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue