From 753f96023819b6218692eba8469dcf35ac37812d Mon Sep 17 00:00:00 2001 From: klueska Date: Wed, 23 Apr 2008 06:25:45 +0000 Subject: [PATCH] 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 --- tos/system/AMQueueImplP.nc | 3 +++ 1 file changed, 3 insertions(+) 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; + } } -- 2.39.2