You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unsigned longCOBS_decode(
byte*codedMessage, // pointer to the buffer where the data to decode isunsigned longlenght, // number of elements in the message to decodebyte*decodedMessage// pointer to the buffer where the decoded data will be stored
){
unsigned longread_index=0, // index to the element of the encoded buffer we are readingwrite_index=0; // index to the element of the decoded buffer where we will write the decodingwhile(read_index<lenght) { // while we haven't finished converting the packets...intcode=codedMessage[read_index]; // the first element is the coderead_index++; // go to next encoded element
I think instead of int it should be byte. Let me know what you think! Do you agree?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/Biomedical-Electronics/masb-p06-laia_joana-3/blob/7a5fdba8affb56617b6d078a73c57cf80eb3b3fb/arduino/masb-p06/cobs.ino#L67
I think instead of int it should be byte. Let me know what you think! Do you agree?
Have a nice day,
Laia Colomé i Joana Ros
Beta Was this translation helpful? Give feedback.
All reactions