fixed issue in sml_list_entry_parse()
This commit is contained in:
parent
5568699985
commit
4ff38d7856
2 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ void sml_buf_update_bytes_read(sml_buffer *buf, int bytes);
|
|||
|
||||
// Checks if the next field is a skipped optional field, updates the buffer accordingly
|
||||
int sml_buf_optional_is_skipped(sml_buffer *buf);
|
||||
#define SML_SKIP_OPTIONAL (sml_buf_optional_is_skipped(buf)) ? 0 :
|
||||
|
||||
// Prints arbitrarily byte string to stdout with printf
|
||||
void hexdump(unsigned char *buffer, size_t buffer_len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -60,7 +60,7 @@ sml_list *sml_list_entry_parse(sml_buffer *buf) {
|
|||
l->status = sml_status_parse(buf);
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
|
||||
l->val_time = SML_SKIP_OPTIONAL sml_time_parse(buf);
|
||||
l->val_time = sml_time_parse(buf);
|
||||
if (sml_buf_has_errors(buf)) goto error;
|
||||
|
||||
l->unit = sml_u8_parse(buf);
|
||||
|
|
Loading…
Add table
Reference in a new issue