Skip to content

Commit

Permalink
redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Mar 9, 2018
1 parent 81e6b0d commit 3662d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/pedal/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void pedal() {
pdl1 = adc_get(ADCCHAN_ACCEL1);

// write the pedal to the DAC
if (timeout < MAX_TIMEOUT && state == NO_FAULT) {
if (state == NO_FAULT) {
dac_set(0, max(gas_set_0, pdl0));
dac_set(1, max(gas_set_1, pdl1));
} else {
Expand Down

0 comments on commit 3662d1e

Please sign in to comment.