SerialInit() and show it on UI

This commit is contained in:
Gwenhael Le Moine 2024-09-24 21:17:50 +02:00
parent 9c99a84a0d
commit e268d75cca
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 5 additions and 2 deletions

View file

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

View file

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