aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/quantum.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 224bfb795..270b976e3 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -308,8 +308,11 @@ void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
308} 308}
309 309
310void tap_random_base64(void) { 310void tap_random_base64(void) {
311 uint8_t key = (TCNT0 + TCNT1 + TCNT3 + TCNT4) % 64; 311 #if defined(__AVR_ATmega32U4__)
312 // uint8_t key = rand() % 64; 312 uint8_t key = (TCNT0 + TCNT1 + TCNT3 + TCNT4) % 64;
313 #else
314 uint8_t key = rand() % 64;
315 #endif
313 switch (key) { 316 switch (key) {
314 case 0 ... 25: 317 case 0 ... 25:
315 register_code(KC_LSFT); 318 register_code(KC_LSFT);