Skip to content

Commit 6f2d249

Browse files
committed
drop double precision check in tests for avr
1 parent db45eba commit 6f2d249

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.tests/AdafruitIO_Data/AdafruitIO_Data.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ void loop() {
6565

6666
bool compareDouble(double a, double b)
6767
{
68+
#ifdef __AVR__
69+
return abs(a-b) < 0.00001;
70+
#elif
6871
return abs(a-b) < 0.000001;
72+
#endif
6973
}
7074

7175
bool compareChar(char *a, char *b)

0 commit comments

Comments
 (0)