Skip to content

Commit 4eb7210

Browse files
martamomotkoP33M
authored andcommitted
autobaud: Fix baud_changed undefined reference (#190)
1 parent cc88575 commit 4eb7210

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/autobaud.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bool dma_configure(PIO pio, uint sm) {
194194

195195
// Compare rounded integer parts of baud rates
196196
// Tolerance of 0.5% in detected versus set
197-
inline bool baud_changed(float new_baud, float baud) {
197+
static inline bool baud_changed(float new_baud, float baud) {
198198
uint32_t hi = (uint32_t)(baud * 1.005f);
199199
uint32_t lo = (uint32_t)(baud * 0.995f);
200200
uint32_t new = (uint32_t)new_baud;

0 commit comments

Comments
 (0)