get rid of that mutex that has a 0 timeout its already protected by the isFull flag.
track index less confusingly in logGeneric. by always doing smth likelength += snprintf(start, length, end - length, "text text text") it looks so neater and less error-prone. The code rn is an array out of bounds write just waiting to happen :skull-emoticon:
append \r
dump contents of log if no new msgs for x time?
reset log somehow if no new msgs for x time? in case smth weird happened.. but this should never occur
todo list for later
length += snprintf(start, length, end - length, "text text text")
it looks so neater and less error-prone. The code rn is an array out of bounds write just waiting to happen :skull-emoticon: