HW: Use more sensible variable names for logging

This commit is contained in:
Christian Kenny 2022-05-22 11:39:03 -04:00 committed by refractionpcsx2
parent d13c7b6b3e
commit e283831841
2 changed files with 8 additions and 8 deletions

View File

@ -293,18 +293,18 @@ void _hwWrite8(u32 mem, u8 value)
#endif
if (mem == SIO_TXFIFO)
{
static bool iggy_newline = false;
static bool included_newline = false;
static char sio_buffer[1024];
static int sio_count;
if (value == '\r')
{
iggy_newline = true;
included_newline = true;
sio_buffer[sio_count++] = '\n';
}
else if (!iggy_newline || (value != '\n'))
else if (!included_newline || (value != '\n'))
{
iggy_newline = false;
included_newline = false;
sio_buffer[sio_count++] = value;
}

View File

@ -126,16 +126,16 @@ void iopHwWrite8_Page3( u32 addr, mem8_t val )
{
static char pbuf[1024];
static int pidx;
static bool iggy_newline = false;
static bool included_newline = false;
if (val == '\r')
{
iggy_newline = true;
included_newline = true;
pbuf[pidx++] = '\n';
}
else if (!iggy_newline || (val != '\n'))
else if (!included_newline || (val != '\n'))
{
iggy_newline = false;
included_newline = false;
pbuf[pidx++] = val;
}