Merge branch 'master' into pc98x1

This commit is contained in:
TC1995
2024-09-17 00:31:02 +02:00
2 changed files with 2 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ mtouch_write(serial_t *serial, void *priv, uint8_t data)
static int
mtouch_prepare_transmit(void *priv)
{
char buffer[10];
char buffer[16];
mouse_microtouch_t *dev = (mouse_microtouch_t *) priv;
double abs_x = dev->abs_x;

View File

@@ -1983,10 +1983,8 @@ sb_read(uint16_t a, void *priv)
else
ret = (dsp->sb_read_rp == dsp->sb_read_wp) ? 0x7f : 0xff;
}
if (dsp->state == DSP_S_RESET_WAIT) {
ret &= 0x7f;
if (dsp->state == DSP_S_RESET_WAIT)
dsp->state = DSP_S_NORMAL;
}
break;
case 0xF: /* 16-bit ack */
if (IS_NOT_ESS(dsp)) {