Fixing Build errors

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik 2016-09-10 13:29:34 -07:00 committed by Noel Eck
parent e211f82f6c
commit af417d3ae1
5 changed files with 8 additions and 5 deletions

View File

@ -26,7 +26,9 @@
#include <unistd.h>
#include <iostream>
#include <iomanip>
#include "grove.hpp"
#include "temperature.hpp"
using namespace std;
int
main(int argc, char **argv)

View File

@ -7,7 +7,7 @@
#include <unistd.h>
#include "grovemoisture.h"
void main(void)
int main()
{
grovemoisture_context dev = grovemoisture_init(14);
int val;

View File

@ -7,7 +7,7 @@
#include <unistd.h>
#include "tsl2561.h"
void main(void)
int main()
{
tsl2561_context dev = tsl2561_init(0, TSL2561_Address, GAIN_0X, INTEGRATION_TIME1_101MS);
float abc = 0;

View File

@ -38,7 +38,7 @@ add_example(Emg emg)
add_example(Gsr gsr)
add_example(GroveLed_multiSample grove)
add_example(GroveLEDSample grove)
add_example(LightSample grove)
add_example(LightSample light)
add_example(GroveLineFinderSample grovelinefinder)
add_example(GroveMDSample grovemd)
add_example(GroveMoistureSample grovemoisture)
@ -49,7 +49,7 @@ add_example(GroveQTouch at42qt1070)
add_example(GroveRelaySample grove)
add_example(GroveRotarySample grove)
add_example(GROVESCAMSample grovescam)
add_example(SlideSample grove)
add_example(SlideSample slide)
add_example(GroveSpeakerSample grovespeaker)
add_example(TemperatureSample temperature)
add_example(VDivSample vdiv)

View File

@ -31,6 +31,7 @@
#include "temperature.hpp"
#include "math.h"
using namespace std;
using namespace upm;
Temperature::Temperature(unsigned int pin, float scale, int r0, int b)