Skip to content

Commit

Permalink
Update ongeki_hardware.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX committed Aug 18, 2023
1 parent 13822f1 commit 72ff921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ongeki_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ namespace component {

uint16_t finalResult = (result1 << 8) + result2;
finalResult = finalResult > 16383 ? 65535 : finalResult << 2;
//finalResult = ~finalResult;
finalResult = ~finalResult;
data->analog[0] = *(int16_t *) &finalResult;
data->rotary[0] = *(int16_t *) &finalResult;
// tud_cdc_write_str(std::to_string(finalResult).c_str());
Expand Down

0 comments on commit 72ff921

Please sign in to comment.