]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/AntiTheft/Nodes/antitheft.h
antitheft gui
[tinyos-2.x.git] / apps / AntiTheft / Nodes / antitheft.h
index 7cff06ba53865b29bc32f2f139f50ba1dffd0723..fefe553e4a6bef78da1268dedee65672baae9a7c 100644 (file)
@@ -26,7 +26,7 @@ enum {
 
   AM_SETTINGS = 54,
   AM_THEFT = 99,
-  AM_ALERTS = 22,
+  AM_ALERT = 22,
   DIS_SETTINGS = 42,
   COL_ALERTS = 11,
 
@@ -35,12 +35,12 @@ enum {
   DEFAULT_CHECK_INTERVAL = 1000
 };
 
-typedef nx_struct {
+typedef nx_struct settings {
   nx_uint8_t alert, detect;
   nx_uint16_t checkInterval;
 } settings_t;
 
-typedef nx_struct {
+typedef nx_struct alert {
   nx_uint16_t stolenId;
 } alert_t;