X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fdip%2FDisseminatorP.nc;h=b3c2ed1b824de43aa4242c90c2e1aa243bf2a1de;hb=5941e488eec8788182d5f627b21facf867a0152d;hp=15ec04cd096b6859b40c0283470a09288328bd27;hpb=976b8a47a020449f58dcfb118e35940581c0b9cf;p=tinyos-2.x.git diff --git a/tos/lib/net/dip/DisseminatorP.nc b/tos/lib/net/dip/DisseminatorP.nc index 15ec04cd..b3c2ed1b 100644 --- a/tos/lib/net/dip/DisseminatorP.nc +++ b/tos/lib/net/dip/DisseminatorP.nc @@ -50,8 +50,8 @@ generic module DisseminatorP(typedef t, dip_key_t key) { provides interface Init; - uses interface DisseminationUpdate as DIPDisseminationUpdate; - uses interface DIPHelp; + uses interface DisseminationUpdate as DipDisseminationUpdate; + uses interface DipHelp; uses interface Leds; } @@ -63,7 +63,7 @@ implementation { } command error_t Init.init() { - call DIPHelp.registerKey(key); + call DipHelp.registerKey(key); return SUCCESS; } @@ -82,9 +82,9 @@ implementation { command void AppDisseminationUpdate.change( t* newVal ) { memcpy( &valueCache, newVal, sizeof(t) ); /* Increment the counter and append the local node ID later. */ - /* DIPLogicC doesn't care what the data actually is, + /* DipLogicC doesn't care what the data actually is, it just wants the key, so we cast it recklessly */ - call DIPDisseminationUpdate.change((dip_data_t*)newVal); + call DipDisseminationUpdate.change((dip_data_t*)newVal); } command const dip_data_t* DataDisseminationValue.get() {