mirror of https://github.com/ArduPilot/ardupilot
token size for first()/next() is now 16 bits
This commit is contained in:
parent
ee2cb32a44
commit
781617cae0
|
@ -127,7 +127,7 @@ private:
|
|||
///
|
||||
AP_Param *_queued_parameter; ///< next parameter to be sent in queue
|
||||
enum ap_var_type _queued_parameter_type; ///< type of the next parameter
|
||||
uint32_t _queued_parameter_token; ///AP_Param token for next() call
|
||||
uint16_t _queued_parameter_token; ///AP_Param token for next() call
|
||||
uint16_t _queued_parameter_index; ///< next queued parameter's index
|
||||
uint16_t _queued_parameter_count; ///< saved count of parameters for queued send
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ setup_show(uint8_t argc, const Menu::arg *argv)
|
|||
report_gyro();
|
||||
#endif
|
||||
|
||||
uint32_t token;
|
||||
uint16_t token;
|
||||
AP_Param *ap;
|
||||
enum ap_var_type type;
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ private:
|
|||
///
|
||||
AP_Param *_queued_parameter; ///< next parameter to be sent in queue
|
||||
enum ap_var_type _queued_parameter_type; ///< type of the next parameter
|
||||
uint32_t _queued_parameter_token; ///AP_Param token for next() call
|
||||
uint16_t _queued_parameter_token; ///AP_Param token for next() call
|
||||
uint16_t _queued_parameter_index; ///< next queued parameter's index
|
||||
uint16_t _queued_parameter_count; ///< saved count of parameters for queued send
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ setup_show(uint8_t argc, const Menu::arg *argv)
|
|||
Serial.printf_P(PSTR("Raw Values\n"));
|
||||
print_divider();
|
||||
|
||||
uint32_t token;
|
||||
uint16_t token;
|
||||
AP_Param *ap;
|
||||
enum ap_var_type type;
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ void setup() {
|
|||
Serial.printf_P(PSTR("RC1_MIN.copy_name()->%s %p\n"), s, &g.channel_roll.radio_min);
|
||||
|
||||
// full testing of all variables
|
||||
uint32_t token;
|
||||
uint16_t token;
|
||||
for (AP_Param *ap = AP_Param::first(&token, &type);
|
||||
ap;
|
||||
ap=AP_Param::next(&token, &type)) {
|
||||
|
|
Loading…
Reference in New Issue