Skip to content

Commit

Permalink
gh actions: add azoteq to the firmwares to be built.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilc committed Dec 28, 2024
1 parent 4e1640d commit e34026b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]

Expand Down
14 changes: 14 additions & 0 deletions keyboards/svalboard/axis_scale.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
4 changes: 4 additions & 0 deletions keyboards/svalboard/axis_scale.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit e34026b

Please sign in to comment.