autobaud: Fix baud_changed undefined reference (#190)

This commit is contained in:
martamomotko
2026-01-06 13:37:59 +00:00
committed by P33M
parent cc88575eee
commit 4eb7210dc6

View File

@@ -194,7 +194,7 @@ bool dma_configure(PIO pio, uint sm) {
// Compare rounded integer parts of baud rates
// Tolerance of 0.5% in detected versus set
inline bool baud_changed(float new_baud, float baud) {
static inline bool baud_changed(float new_baud, float baud) {
uint32_t hi = (uint32_t)(baud * 1.005f);
uint32_t lo = (uint32_t)(baud * 0.995f);
uint32_t new = (uint32_t)new_baud;