mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Notify: Display structures PACKED
This commit is contained in:
parent
843210cac2
commit
fd365de5f8
@ -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, {
|
||||
|
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user