-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit 125acd5
This patch improves the parsing capabilites of
Stream::parseFloat()
The function will now accept decimals starting with an '.' character
not just '0.'.
This commit also fixes an error in the function where 1.23.45 is
parsed as 1.2345 rather than 1.23 and subsequent calls reading 0.451 parent 64fcc71 commit 125acd5
File tree
4 files changed
+22
-16
lines changed- hardware/arduino
- avr/cores/arduino
- sam/cores/arduino
4 files changed
+22
-16
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | - | ||
57 | + | ||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | - | ||
63 | - | ||
64 | - | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
65 | 68 |
| |
66 | 69 |
| |
67 | 70 |
| |
| |||
124 | 127 |
| |
125 | 128 |
| |
126 | 129 |
| |
127 | - | ||
130 | + | ||
128 | 131 |
| |
129 | 132 |
| |
130 | 133 |
| |
| |||
162 | 165 |
| |
163 | 166 |
| |
164 | 167 |
| |
165 | - | ||
168 | + | ||
166 | 169 |
| |
167 | 170 |
| |
168 | 171 |
| |
| |||
182 | 185 |
| |
183 | 186 |
| |
184 | 187 |
| |
185 | - | ||
188 | + | ||
186 | 189 |
| |
187 | 190 |
| |
188 | 191 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 | - | ||
45 | + | ||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | - | ||
57 | + | ||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | - | ||
63 | - | ||
64 | - | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
65 | 68 |
| |
66 | 69 |
| |
67 | 70 |
| |
| |||
124 | 127 |
| |
125 | 128 |
| |
126 | 129 |
| |
127 | - | ||
130 | + | ||
128 | 131 |
| |
129 | 132 |
| |
130 | 133 |
| |
| |||
162 | 165 |
| |
163 | 166 |
| |
164 | 167 |
| |
165 | - | ||
168 | + | ||
166 | 169 |
| |
167 | 170 |
| |
168 | 171 |
| |
| |||
182 | 185 |
| |
183 | 186 |
| |
184 | 187 |
| |
185 | - | ||
188 | + | ||
186 | 189 |
| |
187 | 190 |
| |
188 | 191 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 | - | ||
45 | + | ||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
|
0 commit comments