Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: Masters/DS248x/DS248x.cpp
- Revision:
- 79:7f22823a5a2d
- Parent:
- 78:0cbbac7f2016
- Child:
- 84:708b7be59fb2
diff -r 0cbbac7f2016 -r 7f22823a5a2d Masters/DS248x/DS248x.cpp --- a/Masters/DS248x/DS248x.cpp Mon May 16 15:18:09 2016 -0500 +++ b/Masters/DS248x/DS248x.cpp Mon May 23 18:57:12 2016 -0500 @@ -539,8 +539,8 @@ OneWireMaster::CmdResult DS248x::sendCommand(Command cmd, uint8_t param) const { CmdResult result; - char buf[2] = { cmd, param }; - if (m_p_i2c_bus->write(m_adrs, buf, 2) == I2C_WRITE_OK) + uint8_t buf[2] = { cmd, param }; + if (m_p_i2c_bus->write(m_adrs, reinterpret_cast<const char *>(buf), 2) == I2C_WRITE_OK) { result = Success; }