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:
Krzysztof Chruściński 2023-11-14 12:36:08 +01:00 committed by Johan Hedberg
commit d6a3fd7cf0

View file

@ -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