We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7480dbe commit efaa6c5Copy full SHA for efaa6c5
1 file changed
middleware/src/c_utils.c
@@ -38,6 +38,6 @@ uint16_t uint8_to_uint16(uint8_t msb, uint8_t lsb)
38
39
void uint16_to_uint8(uint16_t value, uint8_t arr[2])
40
{
41
- arr[0] = (uint8_t)(value >> 8); /* MSB */
42
- arr[1] = (uint8_t)value; /* LSB */
+ arr[0] = (uint8_t)value;
+ arr[1] = (uint8_t)(value >> 8);
43
}
0 commit comments