Skip to content

Commit

Permalink
fix pid stop logic
Browse files Browse the repository at this point in the history
this is half baked, needs proper testing

Signed-off-by: Darius Berghe <[email protected]>
  • Loading branch information
buha authored and rbolboac committed Mar 7, 2024
1 parent f9b4434 commit 9514276
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions projects/wethlink/src/app/mwc.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ int mwc_algorithms(struct mwc_iio_dev *mwc)
break;

prev_rf_attn = attn;
}

if (iter_count == 8) {
} else if (iter_count >= 8) {
led_tx_det_green(false);
led_tx_det_red(false);
if (abs((int)mV - (int)mwc->tx_target) <= mwc->tx_tolerance)
Expand Down Expand Up @@ -224,9 +222,7 @@ int mwc_algorithms(struct mwc_iio_dev *mwc)
break;

prev_bb_attn = attn;
}

if (iter_count == 8) {
} else if (iter_count >= 8) {
led_rx_det_green(false);
led_rx_det_red(false);
if (abs((int)mV - (int)mwc->rx_target) <= mwc->rx_tolerance)
Expand Down

0 comments on commit 9514276

Please sign in to comment.