AP_Param: expose check_var_info() as a public symbol

This commit is contained in:
Andrew Tridgell 2014-01-31 13:07:41 +11:00
parent f06152530c
commit 688f61c087
1 changed files with 3 additions and 3 deletions

View File

@ -112,8 +112,6 @@ public:
uint16_t i;
for (i=0; pgm_read_byte(&info[i].type) != AP_PARAM_NONE; i++) ;
_num_vars = i;
check_var_info();
}
// empty constructor
@ -245,6 +243,9 @@ public:
/// cast a variable to a float given its type
float cast_to_float(enum ap_var_type type) const;
// check var table for consistency
static bool check_var_info(void);
private:
/// EEPROM header
///
@ -285,7 +286,6 @@ private:
static bool check_group_info(const struct GroupInfo *group_info, uint16_t *total_size, uint8_t max_bits);
static bool duplicate_key(uint8_t vindex, uint8_t key);
static bool check_var_info(void);
const struct Info * find_var_info_group(
const struct GroupInfo * group_info,
uint8_t vindex,