From 6802a04a15b51ddbd5da8f867d3cdbeebed1de07 Mon Sep 17 00:00:00 2001
From: Alberto Nidasio <alberto.nidasio@skywarder.eu>
Date: Sat, 5 Mar 2022 12:03:14 +0100
Subject: [PATCH] [genutils] Added topic name to event name

---
 scripts/generators/genutils.py   | 1 +
 src/shared/drivers/servo/Servo.h | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/generators/genutils.py b/scripts/generators/genutils.py
index d1f10e41b..ea03a91f3 100644
--- a/scripts/generators/genutils.py
+++ b/scripts/generators/genutils.py
@@ -68,6 +68,7 @@ def parse_scxml(file):
                     (topic, event) = camel_case_to_underscores(
                         transition.attrib['event']).split('.')
                     topics.append(topic)
+                    event = topic + "_" + event
                 else:
                     event = camel_case_to_underscores(
                         transition.attrib['event'])
diff --git a/src/shared/drivers/servo/Servo.h b/src/shared/drivers/servo/Servo.h
index 3d93e7364..fd45ab5ed 100644
--- a/src/shared/drivers/servo/Servo.h
+++ b/src/shared/drivers/servo/Servo.h
@@ -57,9 +57,9 @@ public:
     /**
      * @brief Prepare the timer and sets the PWM output to the minimum.
      *
-     * More specifically, the PWM output is prepared to be equal to minPulse bu
+     * More specifically, the PWM output is prepared to be equal to minPulse but
      * it is not enabled! After creating the object the PWM signal is not
-     * active. This is to ensure
+     * active. This is to ensure the servo motor doesn't move unexpectedly.
      *
      * Note that the timer peripheral's clock is enabled automatically when the
      * PWM object is created.
-- 
GitLab