From 2f9a0a3e04fc90cd1c879ac714e18830c359dfc7 Mon Sep 17 00:00:00 2001 From: Reed Nightingale Date: Mon, 10 Feb 2020 00:51:23 -0800 Subject: [PATCH] Fix compile errors --- utils.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/utils.cpp b/utils.cpp index ebbf737..de6022f 100644 --- a/utils.cpp +++ b/utils.cpp @@ -1,3 +1,10 @@ +#include "utils.h" + +#include +#include //ultoa +#include //memset, strlen +#include //F() + /* * Formats the frequency given */ @@ -5,7 +12,7 @@ void formatFreq(uint32_t freq, char* buff, uint16_t buff_size, uint8_t fixed_wid { memset(buff, 0, buff_size); - ultoa(freq, buff, DEC); + ultoa(freq, buff, 10); uint8_t num_digits = strlen(buff); const uint8_t num_spacers = (num_digits-1) / 3; const uint8_t num_leading_digits_raw = num_digits % 3; @@ -24,7 +31,7 @@ void formatFreq(uint32_t freq, char* buff, uint16_t buff_size, uint8_t fixed_wid } } - ultoa(freq, buff, DEC); + ultoa(freq, buff, 10); buff += num_leading_digits; num_digits -= num_leading_digits; for(int i = num_digits-1; i >= 0; --i){