diff --git a/libraries/AP_Notify/Display_SH1106_I2C.cpp b/libraries/AP_Notify/Display_SH1106_I2C.cpp index 1f4680e28c..d8ca2009b5 100644 --- a/libraries/AP_Notify/Display_SH1106_I2C.cpp +++ b/libraries/AP_Notify/Display_SH1106_I2C.cpp @@ -128,7 +128,6 @@ void Display_SH1106_I2C::set_pixel(uint16_t x, uint16_t y) return; } _displaybuffer[x + (y / 8 * SH1106_COLUMNS)] |= 1 << (y % 8); - _displaybuffer_sem->give(); } @@ -143,9 +142,9 @@ void Display_SH1106_I2C::clear_pixel(uint16_t x, uint16_t y) } // clear pixel in buffer _displaybuffer[x + (y / 8 * SH1106_COLUMNS)] &= ~(1 << (y % 8)); - _displaybuffer_sem->give(); } + void Display_SH1106_I2C::clear_screen() { if (!_displaybuffer_sem->take(0)) { diff --git a/libraries/AP_Notify/Display_SSD1306_I2C.cpp b/libraries/AP_Notify/Display_SSD1306_I2C.cpp index a252c7f307..eb4cd97820 100644 --- a/libraries/AP_Notify/Display_SSD1306_I2C.cpp +++ b/libraries/AP_Notify/Display_SSD1306_I2C.cpp @@ -134,7 +134,6 @@ void Display_SSD1306_I2C::set_pixel(uint16_t x, uint16_t y) } // set pixel in buffer _displaybuffer[x + (y / 8 * SSD1306_COLUMNS)] |= 1 << (y % 8); - _displaybuffer_sem->give(); } @@ -149,9 +148,9 @@ void Display_SSD1306_I2C::clear_pixel(uint16_t x, uint16_t y) } // clear pixel in buffer _displaybuffer[x + (y / 8 * SSD1306_COLUMNS)] &= ~(1 << (y % 8)); - _displaybuffer_sem->give(); } + void Display_SSD1306_I2C::clear_screen() { if (!_displaybuffer_sem->take(0)) {