aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/includes/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/includes/Core')
-rw-r--r--src/common/includes/Core/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/includes/Core/common.h b/src/common/includes/Core/common.h
index 92cb977..7e06975 100644
--- a/src/common/includes/Core/common.h
+++ b/src/common/includes/Core/common.h
@@ -66,3 +66,6 @@ void __disable_irq(void);
#else
void hard_fault_handler_c(uint32_t *);
#endif
+
+// Round a value to the nearest 0.5
+float round_float_to_half_steps(float value);