This commit is contained in:
rusefi 2019-02-28 19:48:38 -05:00
parent d06337e2f5
commit 1f2ac36ca4
2 changed files with 2 additions and 4 deletions

View File

@ -430,9 +430,7 @@ typedef enum __attribute__ ((__packed__)) {
OM_OPENDRAIN_INVERTED = 3 OM_OPENDRAIN_INVERTED = 3
} pin_output_mode_e; } pin_output_mode_e;
typedef enum typedef enum __attribute__ ((__packed__)) {
//__attribute__ ((__packed__))
{
PI_DEFAULT = 0, PI_DEFAULT = 0,
PI_PULLUP = 1, PI_PULLUP = 1,
PI_PULLDOWN = 2 PI_PULLDOWN = 2

View File

@ -16,7 +16,7 @@
TEST(misc, structSize) { TEST(misc, structSize) {
// ASSERT_EQ(1, sizeof(adc_channel_e)) << "small enum size"; // 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_input_mode_e)) << "small enum size";
ASSERT_EQ(1, sizeof(pin_output_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(1, sizeof(brain_pin_e)) << "small enum size";
// ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s)); // ASSERT_EQ(16, sizeof(air_pressure_sensor_config_s));