Skip to content

Commit

Permalink
Adjust opt_encoder_handler() to match qmk#12223
Browse files Browse the repository at this point in the history
  • Loading branch information
d4mation committed Mar 30, 2021
1 parent bdb6ef1 commit 6b25bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboards/ploopyco/trackball/keymaps/d4mation/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void process_wheel_user(report_mouse_t* mouse_report, int16_t h, int16_t v) {
uint16_t p1 = adc_read(OPT_ENC1_MUX);
uint16_t p2 = adc_read(OPT_ENC2_MUX);

uint8_t dir = opt_encoder_handler(p1, p2);
int dir = opt_encoder_handler(p1, p2);

int8_t scalar_factor = round((float) dir * PLOOPY_SCROLLWHEEL_MULTIPLIER);

Expand Down

0 comments on commit 6b25bbe

Please sign in to comment.