Hello,
I have some compiler warnings I'm not sure the best way to tidy up.
as far as I understand about the Msp430Adc12MultiChannel interface
and by digging into its code, the buffer specified by AdcConfigure
is intended as the place for results to land after running the .getData
The trouble is the interface seems to work with a call that declares it
again... So, what is the intent? Should I create yet another buffer
and copy the buffer contents again just to use Msp430Adc12MultiChannel?
What is a more compact, efficient way that I am not seeing yet?
Thanks,
John Griessen
===============================
In file included from ReadMoistureSensorsC.nc:12:
In component `ReadMoistureSensorsP':
ReadMoistureSensorsP.nc:111: warning: declaration of `buffer' shadows
global declaration
ReadMoistureSensorsP.nc:26: warning: location of shadowed declaration
ReadMoistureSensorsP.nc:111: warning: declaration of `bufferlen' shadows
global declaration
ReadMoistureSensorsP.nc:27: warning: location of shadowed declaration
ReadMoistureSensorsP.nc: In function
`ReadMoistureSensorsP$Resource$granted':
ReadMoistureSensorsP.nc:86: warning: unused variable `defaultconfig'
compiled ReadMoistureSensorsC to build/ecosens1/main.exe
14196 bytes in ROM
338 bytes in RAM
code files related to the above message are:
http://www.ecosensory.com/a2d12chP.nc
http://www.ecosensory.com/a2d12chC.nc
http://www.ecosensory.com/a2d12ch.h
http://www.ecosensory.com/ReadMoistureSensorsC.nc
http://www.ecosensory.com/ReadMoistureSensorsP.nc
http://www.ecosensory.com/ReadMoistureSensors.h
http://www.ecosensory.com/Msp430Adc12.h (unmodified -- for reference)
--
Ecosensory
tinyOS devel on: ubuntu Linux; tinyOS v2.0.2; telosb ecosens1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help