Float and better 3rd party library compatibility (#2534)

* define as float (not double)

* Avoid #define of 1 or 2 char symbols

Having this file define 'A' and 'C' pollutes
the global namespace, and causes conflicts
with other libraries that also pollute the
global namespace with short #defines.
It's easier to fix this header.

* unused variable warning
This commit is contained in:
Henry Gabryjelski
2022-02-09 00:46:54 -08:00
committed by GitHub
parent 00b0193a43
commit 38bc618ee5
4 changed files with 29 additions and 26 deletions

View File

@@ -46,8 +46,6 @@ void handleSerial()
static byte red = 0x00;
static byte green = 0x00;
uint16_t nBytes = 0;
while (Serial.available() > 0)
{
yield();