Skip to content

Commit

Permalink
[driver] Fix cast to bool narrowing conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jun 9, 2023
1 parent cd584b1 commit 78ca76f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modm/driver/inertial/bno055.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ class Bno055 : public bno055, public modm::I2cDevice<I2cMaster, 4>
this->transaction.configureWrite(buffer, 2);
buffer[2] = RF_CALL( this->runTransaction() );
if (buffer[2]) prev_reg = reg;
RF_RETURN(buffer[2]);
RF_RETURN((bool)buffer[2]);
}

RF_END_RETURN(true);
Expand Down
2 changes: 1 addition & 1 deletion src/modm/driver/position/vl6180_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ modm::Vl6180<I2cMaster>::initialize()
if (!logicBuffer.byte[0]) RF_RETURN(false);
}

RF_END_RETURN(logicBuffer.byte[0]);
RF_END_RETURN((bool)logicBuffer.byte[0]);
}

template < typename I2cMaster >
Expand Down

0 comments on commit 78ca76f

Please sign in to comment.