Skip to content

Commit

Permalink
Native SENT TPS input #5079
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Feb 20, 2023
1 parent 08e8dbe commit 8df9638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion firmware/hw_layer/drivers/sent/sent.cpp
Expand Up @@ -573,7 +573,10 @@ static void SentDecoderThread(void*) {
ch.GetSignals(NULL, &sig0, &sig1);
engine->sent_state.value0 = sig0;
engine->sent_state.value1 = sig1;
engine->sent_state.errorRate = ch.getErrorRate();

#if SENT_STATISTIC_COUNTERS
engine->sent_state.errorRate = ch.statistic.getErrorRate();
#endif // SENT_STATISTIC_COUNTERS


/* Call high level decoder from here */
Expand Down

0 comments on commit 8df9638

Please sign in to comment.