diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-01 09:34:26 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-01 09:34:26 +0200 |
commit | efc992b4d9bbaf39addc90b6acb3104288cfba5b (patch) | |
tree | 83f633ec027022b3c575aa0770769bf55c6edda9 /src/modules/px4iofirmware/protocol.h | |
parent | a43e963bdb73e6fa0480d442e72e1d764418cad4 (diff) | |
parent | 48f4a1e5cd6ef653b466eb68c1073fb47cbefbd7 (diff) | |
download | px4-firmware-efc992b4d9bbaf39addc90b6acb3104288cfba5b.tar.gz px4-firmware-efc992b4d9bbaf39addc90b6acb3104288cfba5b.tar.bz2 px4-firmware-efc992b4d9bbaf39addc90b6acb3104288cfba5b.zip |
Merged master into geo
Diffstat (limited to 'src/modules/px4iofirmware/protocol.h')
-rw-r--r-- | src/modules/px4iofirmware/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/protocol.h b/src/modules/px4iofirmware/protocol.h index 7471faec7..d5a6b1ec4 100644 --- a/src/modules/px4iofirmware/protocol.h +++ b/src/modules/px4iofirmware/protocol.h @@ -312,7 +312,7 @@ struct IOPacket { #define PKT_COUNT(_p) ((_p).count_code & PKT_COUNT_MASK) #define PKT_CODE(_p) ((_p).count_code & PKT_CODE_MASK) -#define PKT_SIZE(_p) ((uint8_t *)&((_p).regs[PKT_COUNT(_p)]) - ((uint8_t *)&(_p))) +#define PKT_SIZE(_p) ((size_t)((uint8_t *)&((_p).regs[PKT_COUNT(_p)]) - ((uint8_t *)&(_p)))) static const uint8_t crc8_tab[256] __attribute__((unused)) = { |