From: klueska Date: Wed, 23 Apr 2008 06:25:45 +0000 (+0000) Subject: Added default command so that the entire parameterized AMSend interface doesnt have... X-Git-Tag: release_tinyos_2_1_0_0~457 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=753f96023819b6218692eba8469dcf35ac37812d Added default command so that the entire parameterized AMSend interface doesnt have to be wired to when instantiating this component. Useful for reusing this component to build a second layer of queuing on top of a single AM type --- diff --git a/tos/system/AMQueueImplP.nc b/tos/system/AMQueueImplP.nc index a2998d01..0a9e4e08 100644 --- a/tos/system/AMQueueImplP.nc +++ b/tos/system/AMQueueImplP.nc @@ -207,4 +207,7 @@ implementation { default event void Send.sendDone[uint8_t id](message_t* msg, error_t err) { // Do nothing } + default command error_t AMSend.send[uint8_t id](am_addr_t am_id, message_t* msg, uint8_t len) { + return FAIL; + } }