Skip to content

Commit

Permalink
[ADAPTER] Fix axis to buttons mapping
Browse files Browse the repository at this point in the history
Invalid validation was added while doing Coverity fixes!!
  • Loading branch information
darthcloud committed Aug 2, 2021
1 parent 81c9bb6 commit 8bbd8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/adapter/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static uint32_t adapter_map_from_axis(struct map_cfg * map_cfg) {
uint32_t src_axis_idx = btn_id_to_axis(src);
uint32_t dst_axis_idx = btn_id_to_axis(dst);

if (src_axis_idx == AXIS_NONE || dst_axis_idx == AXIS_NONE) {
if (src_axis_idx == AXIS_NONE) {
return 0;
}

Expand Down

0 comments on commit 8bbd8c6

Please sign in to comment.