Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uart_ow.hpp: Correct a logic bug, and 2 questionable uses of c_str()
The command() function had a logic error that caused a command to be broadcast to all devices on the DS OW bus when a proper ID was specified. This should only be done when NO ID is specified. This fixes UPM issue #502. In addition, there were two cases where the C++ string accessor method .c_str() was used when .data() should be used instead. This worked anyway (accidentally), but is improper since the strings can have embedded 0 bytes. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
- Loading branch information