Updating example comms service
@@ -106,7 +106,7 @@ fn main() -> SerialServiceResult<()> {
.to_owned();
// Read configuration from config file.
- let comms_config = CommsConfig::new(service_config.clone());
+ let comms_config = CommsConfig::new(service_config.clone())?;
// Open serial port
let serial_comms = Arc::new(Mutex::new(SerialComms::new(&bus)));
@@ -118,7 +118,7 @@ fn main() -> SerialServiceResult<()> {
serial_comms.clone(),
serial_comms,
comms_config,
- );
+ )?;
// Initialize new `CommsTelemetry` object.
let telem = Arc::new(Mutex::new(CommsTelemetry::default()));
