Skip to content
Snippets Groups Projects
Commit ab3d7aa9 authored by Samuel Helbling's avatar Samuel Helbling
Browse files

changed const char * to String

parent 575a12e6
Branches
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@
#include <Arduino.h>
#include "Sensor_LSM9DS1.h"
void printData(const XYZ<float> &, const char *, const char *);
void printValue(const char *, float, const char *);
void printData(const XYZ<float> &, String, String);
void printValue(String, float, String);
void tab();
void newLine();
......@@ -66,7 +66,7 @@ void loop()
}
void printData(const XYZ<float> & data, const char * sensor, const char * unit)
void printData(const XYZ<float> & data, String sensor, String unit)
{
// TODO: Print the values (x,y & z) for one sensor. Show the sensor type (sensor) first,
// and use the printValue() method from below to show one value of the sensor.
......@@ -75,7 +75,7 @@ void printData(const XYZ<float> & data, const char * sensor, const char * unit)
}
void printValue(const char * name, float value, const char * unit)
void printValue(String name, float value, String unit)
{
//TODO: Print the value according to the following format: "{name}: {value} {unit}".
// The { } just denote where you need to use the parameters of this method.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment