7629| 3
|
[入门] BME280模块代码编译警告 |
商城里购买的BME280模块自带的代码有编译警告large integer implicitly truncated to unsigned type,这个需要怎么修改,不改会不会影响模块正常使用 void DFRobot_BME280::setCtrlMeasMode(eCtrlMeasMode_t eMode) { sRegCtrlMeas_t sRegFlied = {0}, sRegVal = {0}; sRegFlied.mode = 0xff; sRegVal.mode = eMode; writeRegBitsHelper(_sRegs.ctrl_meas, sRegFlied, sRegVal); } |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed