summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-03-07 01:24:47 +0000
committerQMK Bot <hello@qmk.fm>2020-03-07 01:24:47 +0000
commit2306c974e590d80946aaf948dd477853205bb7a7 (patch)
tree307bc30a6e241ab2b0f76cb06064cc53cdaf358e
parent833c5ae87aa89124451efafdf0cf9fc0400f4b03 (diff)
format code according to conventions [skip ci]
-rw-r--r--drivers/oled/oled_driver.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c
index e2cdc2fb7c..079f5688fe 100644
--- a/drivers/oled/oled_driver.c
+++ b/drivers/oled/oled_driver.c
@@ -430,16 +430,16 @@ void oled_write_ln(const char *data, bool invert) {
void oled_pan(bool left) {
uint16_t i = 0;
- for (uint16_t y = 0; y < OLED_DISPLAY_HEIGHT/8; y++) {
- if(left) {
+ for (uint16_t y = 0; y < OLED_DISPLAY_HEIGHT / 8; y++) {
+ if (left) {
for (uint16_t x = 0; x < OLED_DISPLAY_WIDTH - 1; x++) {
- i = y * OLED_DISPLAY_WIDTH + x;
- oled_buffer[i] = oled_buffer[i+1];
+ i = y * OLED_DISPLAY_WIDTH + x;
+ oled_buffer[i] = oled_buffer[i + 1];
}
} else {
- for (uint16_t x = OLED_DISPLAY_WIDTH -1; x > 0; x--) {
- i = y * OLED_DISPLAY_WIDTH + x;
- oled_buffer[i] = oled_buffer[i-1];
+ for (uint16_t x = OLED_DISPLAY_WIDTH - 1; x > 0; x--) {
+ i = y * OLED_DISPLAY_WIDTH + x;
+ oled_buffer[i] = oled_buffer[i - 1];
}
}
}