shell: uart: Add missing casting of the data pointer
Fixing compilation failure due to treating void pointer as uint8_t array. Added missing casting. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
7d0d3f83cb
commit
d6a3fd7cf0
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ static int async_read(struct shell_uart_async *sh_uart,
|
|||
|
||||
for (size_t i = 0; i < blen; i++) {
|
||||
if (smp_shell_rx_bytes(smp, &buf[i], 1) == 0) {
|
||||
data[sh_cnt++] = buf[i];
|
||||
((uint8_t *)data)[sh_cnt++] = buf[i];
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue