AP_Notify: Display structures PACKED

This commit is contained in:
Randy Mackay 2017-01-20 15:43:23 +09:00 committed by Lucas De Marchi
parent 843210cac2
commit fd365de5f8
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Display_SH1106_I2C::Display_SH1106_I2C(AP_HAL::OwnPtr<AP_HAL::Device> dev) :
bool Display_SH1106_I2C::hw_init()
{
struct {
struct PACKED {
uint8_t reg;
uint8_t seq[26];
} init_seq = { 0x0, {

View File

@ -27,7 +27,7 @@ Display_SSD1306_I2C::Display_SSD1306_I2C(AP_HAL::OwnPtr<AP_HAL::Device> dev) :
bool Display_SSD1306_I2C::hw_init()
{
struct {
struct PACKED {
uint8_t reg;
uint8_t seq[31];
} init_seq = { 0x0, {