Skip to content

Commit

Permalink
Add update to oled doc for shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Oct 12, 2023
1 parent 1adc3af commit 2ada136
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docs/feature_oled_driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,8 @@ void oled_render_boot(bool bootloader) {
oled_render_dirty(true);
}

bool reboot = false;

bool uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {

// Display a special message prior to rebooting...
if (keycode == QK_BOOT) {
reboot = true;
}
}

return true;
}

void shutdown_user(void) {
oled_render_boot(reboot);
bool shutdown_user(bool jump_to_bootloader) {
oled_render_boot(jump_to_bootloader);
}

```
Expand Down

0 comments on commit 2ada136

Please sign in to comment.