如果指示灯亮(在500上)而不是从(0)打开,我想发送数据包,否则不发送。我该怎么办?
请帮助我
event void Read.readDone(error_t result, uint16_t data)
{
if (result != SUCCESS)
{
data = 0xffff;
report_problem();
}
if (reading < NREADINGS)
local.readings[reading++] = data;
}
}