diff options
author | px4dev <px4@purgatory.org> | 2013-01-23 18:56:58 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-23 18:56:58 -0800 |
commit | b34311915a04e9ec4d301930e4342f285b5c6cb4 (patch) | |
tree | c6462a4db7fc037592b01c1c6b62b10c590b56d5 /apps/px4io/registers.c | |
parent | 3244bb83ea2656a20cc486205dd77d48f525c05c (diff) | |
download | px4-firmware-b34311915a04e9ec4d301930e4342f285b5c6cb4.tar.gz px4-firmware-b34311915a04e9ec4d301930e4342f285b5c6cb4.tar.bz2 px4-firmware-b34311915a04e9ec4d301930e4342f285b5c6cb4.zip |
Safeguard against back-to-back transactions while setting up to handle a register read request.
Diffstat (limited to 'apps/px4io/registers.c')
-rw-r--r-- | apps/px4io/registers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/px4io/registers.c b/apps/px4io/registers.c index 0206e0db0..6b7ef015f 100644 --- a/apps/px4io/registers.c +++ b/apps/px4io/registers.c @@ -80,9 +80,9 @@ volatile uint16_t r_page_controls[PX4IO_CONTROL_CHANNELS]; * Static configuration parameters. */ static const uint16_t r_page_config[] = { - [PX4IO_P_CONFIG_PROTOCOL_VERSION] = 0, - [PX4IO_P_CONFIG_SOFTWARE_VERSION] = 0, - [PX4IO_P_CONFIG_BOOTLOADER_VERSION] = 0, + [PX4IO_P_CONFIG_PROTOCOL_VERSION] = 1, /* XXX hardcoded magic number */ + [PX4IO_P_CONFIG_SOFTWARE_VERSION] = 1, /* XXX hardcoded magic number */ + [PX4IO_P_CONFIG_BOOTLOADER_VERSION] = 3, /* XXX hardcoded magic number */ [PX4IO_P_CONFIG_MAX_TRANSFER] = 64, /* XXX hardcoded magic number */ [PX4IO_P_CONFIG_CONTROL_COUNT] = PX4IO_CONTROL_CHANNELS, [PX4IO_P_CONFIG_ACTUATOR_COUNT] = IO_SERVO_COUNT, |