xpd: Cleaned up whitespace

This commit is contained in:
Ross Owen
2024-05-30 15:39:02 +01:00
parent c4da4c5653
commit 6e06ed66fc
3 changed files with 5 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ inline unsigned queue_pop_word(queue_t &q, unsigned array[]) {
if(queue_is_empty(q)){
xassert(0 && "Unexpected pop from MIDI queue when empty");
// Return NULL messaqe if asserts not enabled
return MIDI_OUT_NULL_MESSAGE;
return MIDI_OUT_NULL_MESSAGE;
}
return array[q.rdptr++ & q.mask];

View File

@@ -191,7 +191,7 @@ void test_midi_sys_ex(void) {
midi_ref[3] = random(&rndm) & DATA_MASK; // Manf ID 1
for(unsigned i = 4; i < msg_len - 1; i++){
midi_ref[i] = random(&rndm) & DATA_MASK; // Some data
}
}
midi_ref[msg_len - 1] = SYSEX_EOM; // End of sys-ex
unsigned midi_dut[1 + MAX_SYS_EX_LENGTH + 1 + 2] = {0}; // Add SOM + EOM. Add 2 because msg_size % 3 may be up to 2.

View File

@@ -32,7 +32,7 @@ void test_midi_queue_init(void) {
int empty = queue_is_empty_c_wrapper(&symbol_fifo);
TEST_ASSERT_EQUAL_INT32(1, empty);
int full = queue_is_full_c_wrapper(&symbol_fifo);
TEST_ASSERT_EQUAL_INT32(0, full);
@@ -61,7 +61,7 @@ void test_midi_queue_full(void) {
int empty = queue_is_empty_c_wrapper(&symbol_fifo);
TEST_ASSERT_EQUAL_INT32(0, empty);
int full = queue_is_full_c_wrapper(&symbol_fifo);
TEST_ASSERT_EQUAL_INT32(1, full);
@@ -112,4 +112,4 @@ void test_midi_queue_push_pop(void) {
counter++;
}
}
}