diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 047566396b2..b5f1fd64fe2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - keyboard: [ svalboard/trackpoint, svalboard, svalboard/trackball/pmw3360, svalboard/trackball/pmw3389 ] + keyboard: [ svalboard/trackpoint, svalboard, svalboard/trackball/pmw3360, svalboard/trackball/pmw3389, svalboard/azoteq ] keymap: [ vial ] side: [ left, right ] diff --git a/keyboards/svalboard/axis_scale.c b/keyboards/svalboard/axis_scale.c index 7317d3c5da7..56d278fd9c3 100644 --- a/keyboards/svalboard/axis_scale.c +++ b/keyboards/svalboard/axis_scale.c @@ -36,6 +36,13 @@ void div_mult_axis(axis_scale_t *as, uint8_t div) { } } +void set_mult_axis(axis_scale_t *as, uint8_t val) { + if (val != 0) { + as->mult = val; + as->remainder = 0; + } +} + AXIS_TYPE add_to_axis(axis_scale_t *as, AXIS_TYPE val) { AXIS_TYPE ret_val; @@ -66,6 +73,13 @@ void div_div_axis(axis_scale_t *as, uint8_t div) { } } +void set_div_axis(axis_scale_t *as, uint8_t val) { + if (val != 0) { + as->div = val; + as->remainder = 0; + } +} + void clear_remainder_axis(axis_scale_t *as) { as->remainder = 0; } diff --git a/keyboards/svalboard/axis_scale.h b/keyboards/svalboard/axis_scale.h index 8053d9dcb38..36e9ba2448b 100644 --- a/keyboards/svalboard/axis_scale.h +++ b/keyboards/svalboard/axis_scale.h @@ -32,7 +32,11 @@ typedef struct { AXIS_TYPE add_to_axis(axis_scale_t *, AXIS_TYPE); void clear_remainder_axis(axis_scale_t *); + void mult_mult_axis(axis_scale_t *, uint8_t); void div_mult_axis(axis_scale_t *, uint8_t); +void set_mult_axis(axis_scale_t *, uint8_t); + void mult_div_axis(axis_scale_t *, uint8_t); void div_div_axis(axis_scale_t *, uint8_t); +void set_div_axis(axis_scale_t *, uint8_t);