We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff3388 commit f2af720Copy full SHA for f2af720
library.properties
@@ -1,5 +1,5 @@
1
name=StringUtils
2
-version=1.5.2
+version=1.5.3
3
author=AlexGyver <alex@alexgyver.ru>
4
maintainer=AlexGyver <alex@alexgyver.ru>
5
sentence=Bunch of converting functions for string data
src/utils/convert/convert.cpp
@@ -293,7 +293,12 @@ float strToFloat(const char* s) {
293
float strToFloat_P(PGM_P s) {
294
bool neg = (pgm_read_byte(s) == '-');
295
float f = strToInt_P<int32_t>(s);
296
+
297
+#ifdef __AVR__
298
const char* d = strchr_P(s, '.');
299
+#else
300
+ const char* d = strchr(s, '.');
301
+#endif
302
303
if (d) {
304
uint8_t fracLen = strlen_P(d + 1);
0 commit comments