Browse Source

AP_Notify: minor formatting fixes

no functional change
master
Randy Mackay 8 years ago committed by Lucas De Marchi
parent
commit
1300a9d3c6
  1. 3
      libraries/AP_Notify/Display_SH1106_I2C.cpp
  2. 3
      libraries/AP_Notify/Display_SSD1306_I2C.cpp

3
libraries/AP_Notify/Display_SH1106_I2C.cpp

@ -128,7 +128,6 @@ void Display_SH1106_I2C::set_pixel(uint16_t x, uint16_t y)
return; return;
} }
_displaybuffer[x + (y / 8 * SH1106_COLUMNS)] |= 1 << (y % 8); _displaybuffer[x + (y / 8 * SH1106_COLUMNS)] |= 1 << (y % 8);
_displaybuffer_sem->give(); _displaybuffer_sem->give();
} }
@ -143,9 +142,9 @@ void Display_SH1106_I2C::clear_pixel(uint16_t x, uint16_t y)
} }
// clear pixel in buffer // clear pixel in buffer
_displaybuffer[x + (y / 8 * SH1106_COLUMNS)] &= ~(1 << (y % 8)); _displaybuffer[x + (y / 8 * SH1106_COLUMNS)] &= ~(1 << (y % 8));
_displaybuffer_sem->give(); _displaybuffer_sem->give();
} }
void Display_SH1106_I2C::clear_screen() void Display_SH1106_I2C::clear_screen()
{ {
if (!_displaybuffer_sem->take(0)) { if (!_displaybuffer_sem->take(0)) {

3
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 // set pixel in buffer
_displaybuffer[x + (y / 8 * SSD1306_COLUMNS)] |= 1 << (y % 8); _displaybuffer[x + (y / 8 * SSD1306_COLUMNS)] |= 1 << (y % 8);
_displaybuffer_sem->give(); _displaybuffer_sem->give();
} }
@ -149,9 +148,9 @@ void Display_SSD1306_I2C::clear_pixel(uint16_t x, uint16_t y)
} }
// clear pixel in buffer // clear pixel in buffer
_displaybuffer[x + (y / 8 * SSD1306_COLUMNS)] &= ~(1 << (y % 8)); _displaybuffer[x + (y / 8 * SSD1306_COLUMNS)] &= ~(1 << (y % 8));
_displaybuffer_sem->give(); _displaybuffer_sem->give();
} }
void Display_SSD1306_I2C::clear_screen() void Display_SSD1306_I2C::clear_screen()
{ {
if (!_displaybuffer_sem->take(0)) { if (!_displaybuffer_sem->take(0)) {

Loading…
Cancel
Save