Lucio Hallage
/
ignicaofonica
.
Revision 1:49a28b314101, committed 17 months ago
- Comitter:
- lucio_hallage
- Date:
- Thu Dec 15 16:48:46 2022 +0000
- Parent:
- 0:4d8fdecf2bbf
- Commit message:
- ignicao
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Dec 15 16:47:32 2022 +0000 +++ b/main.cpp Thu Dec 15 16:48:46 2022 +0000 @@ -19,7 +19,7 @@ static char info = 0x55; void toggle(void); -void outputFloat(void); + int ig = 0; float leitura; float leitura_count; @@ -81,13 +81,6 @@ } } -void outputFloat(float value) { - unsigned char * charPtr = (unsigned char*)&value; // create a char * that points to the location of value - for (int i = 0; i<4; i++) { // each byte in value - pc.putc(*(charPtr + i)); // send the next value pointed to by charPtr it over the serial port. - } -} - void toggle() { ig++; if (ig==31){