diff --git a/src/ui48_config.c b/src/ui48_config.c index e7c99d2..ae26b5e 100644 --- a/src/ui48_config.c +++ b/src/ui48_config.c @@ -31,8 +31,8 @@ static config_t config = { .tiny = false, .small = false, - .wire_name = ( char* )"/dev/wire", - .ir_name = ( char* )"/dev/ir", + /* .wire_name = ( char* )"/dev/wire", */ + /* .ir_name = ( char* )"/dev/ir", */ /* from args.h */ .reset = false, diff --git a/src/ui48_emulator.c b/src/ui48_emulator.c index 72611ff..e9ea20a 100644 --- a/src/ui48_emulator.c +++ b/src/ui48_emulator.c @@ -8,6 +8,7 @@ #include "config.h" #include "keyb.h" #include "modules.h" +#include "serial.h" config_t config; @@ -146,6 +147,8 @@ void init_emulator( config_t* conf ) config = *conf; EmulatorInit(); + + conf->wire_name = ( char* )SerialInit(); } void exit_emulator( void ) { EmulatorExit( SAVE_AND_EXIT ); }