From 33361dd37c46e4c89e457c56b250b68ba28d79bb Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Thu, 3 Feb 2022 06:13:55 -0500 Subject: [PATCH] Preliminary config stuff for selectable uart type --- src/config.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 972fb82ab..f5cb94ec4 100644 --- a/src/config.c +++ b/src/config.c @@ -2562,10 +2562,16 @@ save_ports(void) config_set_int(cat, temp, serial_enabled[c]); /* + sprintf(temp, "serial%d_type", c + 1); + if (!serial_enabled[c]) + config_delete_var(cat, temp); +// else +// config_set_string(cat, temp, (char *) serial_type[c]) + sprintf(temp, "serial%d_device", c + 1); if (com_ports[c].device == 0) config_delete_var(cat, temp); - else + else config_set_string(cat, temp, (char *) com_device_get_internal_name(com_ports[c].device)); */