spelling: before

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 12:49:00 -05:00
parent 4c1819019d
commit 5a7fdca2e4
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ void dls_assert_own_list_mutex(void) {
// * session->data->open_count can only be read/modified while holding the list mutex
// and is only available if session->status == DataLoggingStatusActive
// * In order to avoid deadlocks,
// - s_list_mutex MUST be released befored trying to grab session->data->mutex.
// - s_list_mutex MUST be released before trying to grab session->data->mutex.
// - session->data->open_count must incremented to be > 0 under s_list_mutex before you can
// grab session->data-mutex
// - if you already own session->data-mutex, it is OK to grab s_list_mutex

View file

@ -53,7 +53,7 @@ bool circular_buffer_write(CircularBuffer* buffer, const void* data, uint16_t le
uint16_t write_index = get_write_index(buffer);
// Update the data_length member now beforce we muck with the length parameter
// Update the data_length member now before we muck with the length parameter
buffer->data_length += length;
const uint16_t remaining_length = buffer->buffer_size - write_index;