AP_Notify: minor formatting fixes

no functional change
This commit is contained in:
Randy Mackay 2017-01-21 14:04:06 +09:00 committed by Lucas De Marchi
parent 4691bc76f3
commit 1300a9d3c6
2 changed files with 2 additions and 4 deletions

View File

@ -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)) {

View File

@ -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)) {