Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
Diff: Devices/DS9400.cpp
- Revision:
- 5:a8c83a2e6fa4
- Parent:
- 3:f818ea5172ed
--- a/Devices/DS9400.cpp Fri Jan 19 10:25:02 2018 -0600
+++ b/Devices/DS9400.cpp Wed Jan 23 13:11:04 2019 -0600
@@ -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