This commit is contained in:
parent
7796c4e72c
commit
0fbc8c7adc
|
@ -618,9 +618,7 @@ typedef enum {
|
|||
/**
|
||||
* Hardware pin. This enum is platform-specific.
|
||||
*/
|
||||
typedef enum
|
||||
//__attribute__ ((__packed__))
|
||||
{
|
||||
typedef enum __attribute__ ((__packed__)) {
|
||||
GPIO_UNASSIGNED = 0,
|
||||
GPIO_INVALID = 1,
|
||||
|
||||
|
|
|
@ -18,8 +18,9 @@ TEST(misc, structSize) {
|
|||
ASSERT_EQ(1, sizeof(adc_channel_e)) << "small enum size";
|
||||
ASSERT_EQ(1, sizeof(pin_input_mode_e)) << "small enum size";
|
||||
ASSERT_EQ(1, sizeof(pin_output_mode_e)) << "small enum size";
|
||||
// ASSERT_EQ(1, sizeof(brain_pin_e)) << "small enum size";
|
||||
// ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s));
|
||||
ASSERT_EQ(1, sizeof(brain_pin_e)) << "small enum size";
|
||||
ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s));
|
||||
ASSERT_EQ(20000, sizeof(persistent_config_s));
|
||||
}
|
||||
|
||||
TEST(misc, testIgnitionPlanning) {
|
||||
|
|
Loading…
Reference in New Issue