Extended MaximInterface
Dependents: mbed_DS28EC20_GPIO
Diff: Devices/DS9400.cpp
- Revision:
- 8:211d1b8f730c
- Parent:
- 6:a8c83a2e6fa4
--- a/Devices/DS9400.cpp Tue Jul 24 08:33:31 2018 +0000 +++ b/Devices/DS9400.cpp Wed Apr 03 12:33:10 2019 +0000 @@ -59,7 +59,7 @@ const uint_least8_t packet[] = {'Q', data}; error_code result = uart->clearReadBuffer(); if (!result) { - result = uart->writeBlock(packet, sizeof(packet) / sizeof(packet[0])); + result = uart->writeBlock(packet); if (!result) { result = uart->readByte(data); if (!result && data != 0) { @@ -83,7 +83,7 @@ error_code DS9400::configure(uint_least8_t config) { const uint_least8_t packet[] = {'C', config}; - return uart->writeBlock(packet, sizeof(packet) / sizeof(packet[0])); + return uart->writeBlock(packet); } -} // namespace MaximInterface \ No newline at end of file +} // namespace MaximInterface