Skip to content

Commit

Permalink
[SensorBHI260AP] Fix missing return value
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Nov 15, 2024
1 parent 55a3243 commit c35a032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SensorBHI260AP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ class SensorBHI260AP
*/
uint8_t digitalRead(uint8_t pin, bool pullup = false)
{
if (pin > JTAG_DIO)return;
if (pin > JTAG_DIO)return 0;
uint32_t pin_mask = pin | BHY2_GPIO_SET;
if (pullup) {
pin_mask |= (BHY2_INPUT_PULLUP << 8);
Expand Down

0 comments on commit c35a032

Please sign in to comment.