summaryrefslogtreecommitdiff
path: root/keyboards/bastardkb/dilemma/3x5_2
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@drashna.net>2023-02-28 11:14:48 -0800
committerGitHub <noreply@github.com>2023-02-28 11:14:48 -0800
commit051401175d98e777a6633445a0275b54ed36e97a (patch)
tree325d717dfbfb12e4cb45c02089602f256ddc36d6 /keyboards/bastardkb/dilemma/3x5_2
parent05631b276d557824518cdb0c7d5d78c8f118891c (diff)
[Keymap] Drashna updates for 0.20.0 (#19960)
Diffstat (limited to 'keyboards/bastardkb/dilemma/3x5_2')
-rw-r--r--keyboards/bastardkb/dilemma/3x5_2/keymaps/drashna/keymap.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/keyboards/bastardkb/dilemma/3x5_2/keymaps/drashna/keymap.c b/keyboards/bastardkb/dilemma/3x5_2/keymaps/drashna/keymap.c
index d4aa71440d..d80d006796 100644
--- a/keyboards/bastardkb/dilemma/3x5_2/keymaps/drashna/keymap.c
+++ b/keyboards/bastardkb/dilemma/3x5_2/keymaps/drashna/keymap.c
@@ -133,14 +133,24 @@ bool oled_task_keymap(void) {
// render_rgb_hsv(1, 13);
oled_set_cursor(1, 13);
- // oled_write_P(PSTR("Timer:"), false);
- // oled_write(get_u8_str((uint8_t)(timer_elapsed32(oled_timer) / 1000), ' '), false);
- oled_write_P(PSTR("Status: "), false);
- if (is_oled_enabled) {
- oled_write_P(PSTR("on "), false);
- } else {
- oled_write_P(PSTR("off"), false);
- }
+ oled_write_P(PSTR("OS: "), false);
+ extern os_variant_t os_type;
+ switch (os_type) {
+ case OS_LINUX:
+ oled_write_ln_P(PSTR("Linux"), false);
+ break;
+ case OS_WINDOWS:
+ oled_write_ln_P(PSTR("Windows"), false);
+ break;
+ case OS_MACOS:
+ oled_write_ln_P(PSTR("MacOS"), false);
+ break;
+ case OS_IOS:
+ oled_write_ln_P(PSTR("iOS"), false);
+ break;
+ default:
+ break;
+ }
render_keylogger_status(1, 14);