diff --git a/dist/idac/segatools.ini b/dist/idac/segatools.ini index c6660ca..feae701 100644 --- a/dist/idac/segatools.ini +++ b/dist/idac/segatools.ini @@ -41,6 +41,7 @@ region=4 [gpio] ; ALLS DIP switches. +enable=1 ; If multiple machines are present on the same LAN then set this to 1 on ; exactly one machine and set this to 0 on all others. diff --git a/platform/config.c b/platform/config.c index 62f2707..a9f4759 100644 --- a/platform/config.c +++ b/platform/config.c @@ -327,7 +327,7 @@ void dipsw_config_load(struct dipsw_config *cfg, const wchar_t *filename) assert(cfg != NULL); assert(filename != NULL); - cfg->enable = GetPrivateProfileIntW(L"gpio", L"enable", 1, filename); + cfg->enable = GetPrivateProfileIntW(L"gpio", L"enable", 0, filename); wcscpy_s(name, _countof(name), L"dipsw0"); diff --git a/platform/dipsw.c b/platform/dipsw.c index e6af610..ee6dd91 100644 --- a/platform/dipsw.c +++ b/platform/dipsw.c @@ -3,7 +3,6 @@ #include #include -// #include #include "platform/dipsw.h" #include "platform/vfs.h"