Hi,

I use the MTS300 Sensorboard with micaz motes. I use the Read-interface
implementations from SensorMts300C.

My wiring:
=======
components new SensorMts300C();
SensorReader0.Read -> SensorMts300C.Vref;
SensorReader1.Read -> SensorMts300C.Temp;

By now I do not use the magnetic sensor (I want to do so later). But I get a
compile error that I don't understand from one of the TinyOS Files:

And the error
==========
/opt/tinyos-2.x/tos/sensorboards/mts300/Mag.nc: In function
'MagP$Mag$gainAdjustXDone':
/opt/tinyos-2.x/tos/sensorboards/mts300/Mag.nc:65: error: 'result'
redeclared as different kind of symbol
/opt/tinyos-2.x/tos/sensorboards/mts300/Mag.nc:65: error: previous
definition of 'result' was here
/opt/tinyos-2.x/tos/sensorboards/mts300/Mag.nc: In function
'MagP$Mag$gainAdjustYDone':
/opt/tinyos-2.x/tos/sensorboards/mts300/Mag.nc:70: error: 'result'
redeclared as different kind of symbol
/opt/tinyos-2.x/tos/sensorboards/mts300/Mag.nc:70: error: previous
definition of 'result' was here

The according lines in the interface Mag (Mag.nc) are:

65:
   event error_t gainAdjustXDone(bool result);

70:
  event error_t gainAdjustYDone(bool result);


I have no idea what could be wrong with them :( Any hints?

Thanks Nicola
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to