mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 09:03:34 +08:00
px4cannode-v1 bootloader uses upstream NuttX's new struct packing
This commit is contained in:
committed by
Daniel Agar
parent
364551b6f5
commit
2c9a6eb727
@@ -187,12 +187,12 @@ size_t board_get_hardware_version(uavcan_HardwareVersion_t *hw_version)
|
||||
****************************************************************************/
|
||||
#define led(n, code, r , g , b, h) {.red = (r),.green = (g), .blue = (b),.hz = (h)}
|
||||
|
||||
typedef struct packed_struct led_t {
|
||||
typedef begin_packed_struct struct led_t {
|
||||
uint16_t red : 5;
|
||||
uint16_t green : 6;
|
||||
uint16_t blue : 5;
|
||||
uint8_t hz;
|
||||
} led_t;
|
||||
} end_packed_struct led_t;
|
||||
|
||||
static const led_t i2l[] = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user