Hi, I have to do an average and this is my event :

async event result_t ADC.dataReady(uint16_t){

                bool dataPending;
                uint16_t dataValue;
                uint16_t array[10];
                uint16_t moy;
                int i = 0;

                if (!dataPending) {
                        dataPending = TRUE;
                                dataValue = call ADC.getData(); //uint16_t = 
data
                                array[i]=dataValue;
                                i++;
                                moy = ((array[0] + array[1] + array[2] + 
array[3] + array[4] + array[5] +
array[6] + array[7] + array[8] + array[9] )/10);
                                if (i==10){
                                        i=0;
                                }
                post sendData();
                call Leds.yellowToggle();
                return SUCCESS;
                }
        }

I got this error :

C:\Crossbow\cygwin\opt\MoteWorks\apps\tutorials\lesson_6\TempAverageM.nc:44:
error: parameter name omitted
make: *** [exe0] Error 1

How to fix a parameter, please ?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to