erosqnative: Fix operation in a simulator environment

Real hardware needs 24-bit PCM data supplied, but simulator
is still 16bit only.

Change-Id: I20b88a7cb27105829fe5c9e9c434f559a6dbbb60
This commit is contained in:
Solomon Peachy 2024-12-07 14:04:28 -05:00
parent e6851a55ed
commit a76ecf1725
2 changed files with 4 additions and 2 deletions

View file

@ -2471,7 +2471,7 @@ static bool dbg_talk(void)
simplelist_reset_lines();
simplelist_setline("Current voice file:");
simplelist_setline("Current voice file:");
if (data.status != TALK_STATUS_ERR_NOFILE)
simplelist_addline(" %s", data.voicefile);
else
@ -2631,7 +2631,7 @@ static bool dbg_device_data(void)
simplelist_setline("Device data RAW:");
for (size_t i = 0; i < device_data.length; i += 4)
{
simplelist_addline("%02x: %02x %02x %02x %02x", i,
simplelist_addline("%02zx: %02x %02x %02x %02x", i,
device_data.payload[i + 0], device_data.payload[i + 1],
device_data.payload[i + 2], device_data.payload[i + 3]);
}