SerialInit() and show it on UI
This commit is contained in:
parent
9c99a84a0d
commit
e268d75cca
2 changed files with 5 additions and 2 deletions
|
@ -31,8 +31,8 @@ static config_t config = {
|
||||||
.tiny = false,
|
.tiny = false,
|
||||||
.small = false,
|
.small = false,
|
||||||
|
|
||||||
.wire_name = ( char* )"/dev/wire",
|
/* .wire_name = ( char* )"/dev/wire", */
|
||||||
.ir_name = ( char* )"/dev/ir",
|
/* .ir_name = ( char* )"/dev/ir", */
|
||||||
|
|
||||||
/* from args.h */
|
/* from args.h */
|
||||||
.reset = false,
|
.reset = false,
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "keyb.h"
|
#include "keyb.h"
|
||||||
#include "modules.h"
|
#include "modules.h"
|
||||||
|
#include "serial.h"
|
||||||
|
|
||||||
config_t config;
|
config_t config;
|
||||||
|
|
||||||
|
@ -146,6 +147,8 @@ void init_emulator( config_t* conf )
|
||||||
config = *conf;
|
config = *conf;
|
||||||
|
|
||||||
EmulatorInit();
|
EmulatorInit();
|
||||||
|
|
||||||
|
conf->wire_name = ( char* )SerialInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void exit_emulator( void ) { EmulatorExit( SAVE_AND_EXIT ); }
|
void exit_emulator( void ) { EmulatorExit( SAVE_AND_EXIT ); }
|
||||||
|
|
Loading…
Reference in a new issue