Skip to content

Commit 852397c

Browse files
committed
Remove encoder registration check from get_counter method
1 parent 405ab2f commit 852397c

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

Src/HALAL/Services/Encoder/Encoder.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ void Encoder::reset(uint8_t id) {
8686
}
8787

8888
uint32_t Encoder::get_counter(uint8_t id) {
89-
if (not Encoder::registered_encoder.contains(id)) {
90-
ErrorHandler("No encoder registered with id %u", id);
91-
return 0;
92-
}
93-
9489
TimerPeripheral* timer = pin_timer_map[registered_encoder[id]];
9590

9691
return timer->handle->Instance->CNT;

0 commit comments

Comments
 (0)