Skip to content

Commit

Permalink
Update behavior_sarcasm.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Sep 19, 2023
1 parent abd3e68 commit adee07b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/behaviors/behavior_sarcasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <zephyr/device.h>
#include <drivers/behavior.h>
#include <zephyr/logging/log.h>
#include <zephyr/random/rand32.h>
#include <zmk/behavior.h>

#include <zmk/endpoints.h>
Expand Down Expand Up @@ -108,7 +109,7 @@ static int sarcasm_keycode_state_changed_listener(const zmk_event_t *eh) {

const struct behavior_sarcasm_config *config = dev->config;

if (zmk_hid_get_explicit_mods() == 0 && k_uptime_get() % 2 == 1) {
if (zmk_hid_get_explicit_mods() == 0 && sys_rand32_get() % 2 == 1) {
sarcasm_enhance_usage(config, ev);
}
}
Expand Down

0 comments on commit adee07b

Please sign in to comment.