Home automation using Xbee radios
Dependencies: EthernetNetIf HTTPServer RPCInterface mbed C12832_lcd
Diff: main.cpp
- Revision:
- 3:c4bec8e7cc07
- Parent:
- 2:9503a713b648
- Child:
- 4:6091cb494e73
diff -r 9503a713b648 -r c4bec8e7cc07 main.cpp --- a/main.cpp Wed Nov 27 18:36:31 2013 +0000 +++ b/main.cpp Wed Nov 27 19:15:37 2013 +0000 @@ -81,10 +81,10 @@ while ( node->addrHigh != addrhigh) { node = node->next; - while(node->addrLow !=addrlow){ + } + while(node->addrLow !=addrlow){ node = node->next; } - } } node->digitalData = data; } @@ -96,9 +96,9 @@ while ( node->addrHigh != addrhigh) { node = node->next; + } while(node->addrLow !=addrlow){ node = node->next; - } } } node->analogData[index] = data;