Skip to content

Commit

Permalink
fixed return bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WoozyDragon committed Oct 25, 2023
1 parent 9921485 commit 66830df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ float EncoderBus::read_enc(uint8_t id) {

float UWBBus::read_uwb(uint8_t id) {
noInterrupts();
return UWBBus::uwb_buffer_[id];
uint8_t data = uwb_buffer_[id];
interrupts();
return data;
}

void UWBBus::init() {
Expand Down

0 comments on commit 66830df

Please sign in to comment.