token size for first()/next() is now 16 bits

This commit is contained in:
Andrew Tridgell 2012-02-13 10:12:22 +11:00
parent ee2cb32a44
commit 781617cae0
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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)) {