disable dipsw by default

This commit is contained in:
Dniel97 2023-07-14 01:07:22 +02:00
parent e5d17b82b2
commit 600f795104
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08
3 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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");

View File

@ -3,7 +3,6 @@
#include <assert.h>
#include <string.h>
// #include <zlib.h>
#include "platform/dipsw.h"
#include "platform/vfs.h"