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.
Diff: DataControl.cpp
- Revision:
- 2:d8bfeadb944e
- Parent:
- 1:d37d53d33f0d
- Child:
- 3:78735753b3cc
diff -r d37d53d33f0d -r d8bfeadb944e DataControl.cpp
--- a/DataControl.cpp Fri Sep 30 04:30:22 2022 +0000
+++ b/DataControl.cpp Sat Oct 01 16:19:44 2022 +0000
@@ -19,7 +19,7 @@
int DataControl::dataCombine(unsigned char *array, int _data_size)
{
for(int i=0; i<5; i++) dataBuff[i] = 0;
- for(int i=0; i<_data_size; i++) {
+ for(int i=0; i<_data_size-1; i++) {
dataBuff[i] = array[i];
dataBuff[4] |= dataBuff[i] << (i*8);
}
@@ -52,4 +52,5 @@
data_array[0] = data;
}
+
/*---end---*/
\ No newline at end of file