mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
reverse previous modification
This commit is contained in:
parent
920aca763f
commit
ac5de6e43d
@ -205,11 +205,8 @@ void serial_init(emile_l2_header_t* info)
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int bitrate, parity, datasize, stopbits;
|
int bitrate, parity, datasize, stopbits;
|
||||||
int8_t *configuration;
|
|
||||||
|
|
||||||
configuration = open_config(info);
|
res = read_config_modem(info,
|
||||||
|
|
||||||
res = read_config_modem(configuration,
|
|
||||||
&bitrate, &parity, &datasize, &stopbits);
|
&bitrate, &parity, &datasize, &stopbits);
|
||||||
if (res == -1)
|
if (res == -1)
|
||||||
{
|
{
|
||||||
@ -257,7 +254,7 @@ void serial_init(emile_l2_header_t* info)
|
|||||||
#endif /* USE_CLI */
|
#endif /* USE_CLI */
|
||||||
}
|
}
|
||||||
|
|
||||||
res = read_config_printer(configuration,
|
res = read_config_printer(info,
|
||||||
&bitrate, &parity, &datasize, &stopbits);
|
&bitrate, &parity, &datasize, &stopbits);
|
||||||
if (res == -1)
|
if (res == -1)
|
||||||
{
|
{
|
||||||
@ -305,7 +302,6 @@ void serial_init(emile_l2_header_t* info)
|
|||||||
}
|
}
|
||||||
#endif /* USE_CLI */
|
#endif /* USE_CLI */
|
||||||
}
|
}
|
||||||
close_config(configuration);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_CLI
|
#ifdef USE_CLI
|
||||||
|
Loading…
Reference in New Issue
Block a user