Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: Slaves/Switches/DS2413/DS2413.cpp
- Revision:
- 120:200109b73e3c
- Parent:
- 104:3f48daed532b
--- a/Slaves/Switches/DS2413/DS2413.cpp Mon Aug 22 21:48:41 2016 +0000 +++ b/Slaves/Switches/DS2413/DS2413.cpp Tue Sep 06 09:25:52 2016 -0500 @@ -167,7 +167,7 @@ if (ow_result == OneWireMaster::Success) { - uint8_t send_block[] = { PIO_ACCESS_WRITE, val, ~val }; + uint8_t send_block[] = { PIO_ACCESS_WRITE, val, static_cast<uint8_t>(~val) }; ow_result = master().OWWriteBlock(send_block, 3); if (ow_result == OneWireMaster::Success)