Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
celerizer committed Oct 17, 2024
1 parent ce999db commit a1505f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion device.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "system.h"
#include "types.h"

#define DEVICES_END H8_DEVICE_INVALID, 0, { NULL }, { NULL }
#define DEVICES_END H8_DEVICE_INVALID, H8_HOOKUP_PORT_INVALID, { NULL }, { NULL }

static const h8_system_preset_t h8_systems[] =
{
Expand Down
2 changes: 1 addition & 1 deletion devices/factory_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void h8_factory_control_init(h8_device_t *device)
h8_bool h8_factory_control_test_in(h8_device_t *device)
{
H8_UNUSED(device);
return H8_FACTORY_CONTROL_NO_TEST;
return H8_FACTORY_CONTROL_TEST;
}

/** @todo "Set for sum of eight A/D conversions" */
Expand Down
4 changes: 2 additions & 2 deletions emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ H8_IN(pdr1i)

for (i = 0; i < 3; i++)
{
if (system->pdr1_in->device && system->pdr1_in->func)
if (system->pdr1_in[i].device && system[i].pdr1_in->func)
{
byte->u &= ~(1 << i);
byte->u |= (system->pdr1_in->func(system->pdr1_in->device) & 0x01) << i;
byte->u |= (system->pdr1_in[i].func(system->pdr1_in[i].device) & 0x01) << i;
}
}
}
Expand Down

0 comments on commit a1505f2

Please sign in to comment.