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 8fc17cc commit c207266Copy full SHA for c207266
firmware/nRF51/tag-proximity/src/log.c
@@ -352,7 +352,9 @@ static void flash_log_write(uint8_t flush_buf)
352
353
void flash_log_write_trigger(void)
354
{
355
- if ( log_running && (BUF_LEN(buf_head,buf_tail) >= BUF_LEN_THRES) )
+ uint8_t *my_head = buf_head;
356
+
357
+ if ( log_running && (BUF_LEN(my_head,buf_tail) >= BUF_LEN_THRES) )
358
flash_log_write(0);
359
}
360
0 commit comments