From 456b6857790a9d54eb3044ed9a8a84d071c12e1c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 21 Mar 2020 16:08:21 +1100 Subject: [PATCH] AP_Param: make type_size() public --- libraries/AP_Param/AP_Param.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 214449f5d3..3724868153 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -454,6 +454,9 @@ public: /// as needed static AP_Param * next_scalar(ParamToken *token, enum ap_var_type *ptype); + /// get the size of a type in bytes + static uint8_t type_size(enum ap_var_type type); + /// cast a variable to a float given its type float cast_to_float(enum ap_var_type type) const; @@ -628,7 +631,6 @@ private: static bool scan( const struct Param_header *phdr, uint16_t *pofs); - static uint8_t type_size(enum ap_var_type type); static void eeprom_write_check( const void *ptr, uint16_t ofs,