Skip to content

Commit 038ab05

Browse files
Ron EldorRon Eldor
authored andcommitted
Add const to variable
Add const type that was accidently removed.
1 parent af7724e commit 038ab05

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/suites/target_test.function

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ uint8_t receive_byte()
9090
uint32_t receive_uint32()
9191
{
9292
uint32_t value;
93-
uint8_t c_be[8] = { greentea_getc(),
94-
greentea_getc(),
95-
greentea_getc(),
96-
greentea_getc(),
97-
greentea_getc(),
98-
greentea_getc(),
99-
greentea_getc(),
100-
greentea_getc()
101-
};
93+
const uint8_t c_be[8] = { greentea_getc(),
94+
greentea_getc(),
95+
greentea_getc(),
96+
greentea_getc(),
97+
greentea_getc(),
98+
greentea_getc(),
99+
greentea_getc(),
100+
greentea_getc()
101+
};
102102
const uint8_t c[9] = { c_be[6], c_be[7], c_be[4], c_be[5], c_be[2],
103103
c_be[3], c_be[0], c_be[1], '\0' };
104104
TEST_HELPER_ASSERT( unhexify( (uint8_t*)&value, c ) != 8 );

0 commit comments

Comments
 (0)