Skip to content

Commit

Permalink
modified ino for testing toString.
Browse files Browse the repository at this point in the history
  • Loading branch information
l4m4re committed May 9, 2018
1 parent de23d2f commit 120aff4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/examples/testSigned2D/testSigned2D.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "Arduino.h"
#include "Map2D3D.h"
#include "toString.h"

//#include <fix16.h>
#include <fix16.hpp>
Expand All @@ -32,9 +33,7 @@ using namespace std;
#define BAUDRATE 115200

// Stuff needed for printing
FILE serial_stdout;
static char outstr[15];
#define mPrintFloat(f) dtostrf(f, 9, 2, outstr); Serial.print(outstr);
#define mPrintFloat(f) Serial.print(toString(f,9,2));


const int8_t xs_int8_t_8[] PROGMEM =
Expand Down Expand Up @@ -165,10 +164,6 @@ void initSerial()
{
// Open serial port with a baud rate of BAUDRATE b/s
Serial.begin(BAUDRATE);

// Set up stdout
fdev_setup_stream(&serial_stdout, serial_putchar, NULL, _FDEV_SETUP_WRITE);
stdout = &serial_stdout;
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 120aff4

Please sign in to comment.