diff --git a/Embedded-Base b/Embedded-Base index 80d7820..ea4aed7 160000 --- a/Embedded-Base +++ b/Embedded-Base @@ -1 +1 @@ -Subproject commit 80d7820d03900c96a9f736a58b7abcb567155ccd +Subproject commit ea4aed794208c1b280f6ce805f7c2a7b805e0cec diff --git a/calypsogen.py b/calypsogen.py index 28ca733..ab24e1d 100644 --- a/calypsogen.py +++ b/calypsogen.py @@ -23,10 +23,13 @@ mpu_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/mpu.yaml", "r")) wheel_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/wheel.yaml", "r")) dti_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/dti.yaml", "r")) +charger_messages = cangen.YAMLParser().parse(open(f"{EMBEDDED_BASE_PATH}/{module_name}/can-messages/charger.yaml", "r")) + bms_messages.msgs.extend(mpu_messages.msgs) bms_messages.msgs.extend(wheel_messages.msgs) bms_messages.msgs.extend(dti_messages.msgs) +bms_messages.msgs.extend(charger_messages.msgs) result = cangen.RustSynth().parse_messages(bms_messages.msgs) diff --git a/src/mqtt.rs b/src/mqtt.rs index b20be6f..6fa97ec 100644 --- a/src/mqtt.rs +++ b/src/mqtt.rs @@ -45,7 +45,7 @@ impl Client for MqttClient { Ok(_) => (), Err(e) => println!("Error sending message: {:?}", e), } - thread::sleep(Duration::from_millis(1)); + thread::sleep(Duration::from_micros(100)); } else { println!("Client not initialized, please set host first and connect") }