fixed typo
This commit is contained in:
parent
1f31fe8bed
commit
7193fcc684
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ typedef struct {
|
||||||
* @param msg_id the message's id
|
* @param msg_id the message's id
|
||||||
* @param crc[out] the crc_extra byte as output of this function
|
* @param crc[out] the crc_extra byte as output of this function
|
||||||
* @return Return 1 if successfull, 0 otherwise.
|
* @return Return 1 if successfull, 0 otherwise.
|
||||||
|
**/
|
||||||
static inline uint8_t hydrolink_get_crc_extra(uint8_t msg_id, uint8_t *crc) {
|
static inline uint8_t hydrolink_get_crc_extra(uint8_t msg_id, uint8_t *crc) {
|
||||||
static const hydrolink_crc_extra_t crcs[] = HYDROLINK_MSG_CRCS;
|
static const hydrolink_crc_extra_t crcs[] = HYDROLINK_MSG_CRCS;
|
||||||
uint8_t left = 0;
|
uint8_t left = 0;
|
||||||
|
|
@ -35,7 +36,7 @@ static inline uint8_t hydrolink_get_crc_extra(uint8_t msg_id, uint8_t *crc) {
|
||||||
left = center;
|
left = center;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
left = mid;
|
left = center;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (crcs[left].msg_id != msg_id) {
|
if (crcs[left].msg_id != msg_id) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue