From 7a36b597be2ab7327dc3fe873372d97b57dc5471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 30 Jul 2022 15:52:47 +0200 Subject: [PATCH] Add comment to function --- stm-firmware/safety/safety-controller.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stm-firmware/safety/safety-controller.c b/stm-firmware/safety/safety-controller.c index e7dab1b..af2c762 100644 --- a/stm-firmware/safety/safety-controller.c +++ b/stm-firmware/safety/safety-controller.c @@ -364,6 +364,10 @@ static void set_overtemp_config(float over_temperature) safety_controller_overtemp_config.crc = crc_unit_get_crc(); } +/** + * @brief Check the overtemperature config structure's CRC + * @return true if check failed. false if CRC check successful + */ static bool over_temperature_config_check(void) { if (safety_controller_overtemp_config.crc_dummy_seed != 0xA4F5C7E6UL)