Skip to content

Commit efaa6c5

Browse files
fix parse
1 parent 7480dbe commit efaa6c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

middleware/src/c_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ uint16_t uint8_to_uint16(uint8_t msb, uint8_t lsb)
3838

3939
void uint16_to_uint8(uint16_t value, uint8_t arr[2])
4040
{
41-
arr[0] = (uint8_t)(value >> 8); /* MSB */
42-
arr[1] = (uint8_t)value; /* LSB */
41+
arr[0] = (uint8_t)value;
42+
arr[1] = (uint8_t)(value >> 8);
4343
}

0 commit comments

Comments
 (0)