From 163306cc0c20fbee3d021599474d9d3ea8787bd8 Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 16 Mar 2005 21:31:28 +0000 Subject: [PATCH] updating to use apdu.c library --- bacnet-stack/ports/linux/main.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/bacnet-stack/ports/linux/main.c b/bacnet-stack/ports/linux/main.c index 0b36df92..9e4e354d 100644 --- a/bacnet-stack/ports/linux/main.c +++ b/bacnet-stack/ports/linux/main.c @@ -38,6 +38,7 @@ #include #include "bacdef.h" #include "npdu.h" +#include "apdu.h" #include "iam.h" #include "ethernet.h" @@ -52,18 +53,6 @@ uint32_t Device_Id = 111; // flag to send an I-Am bool I_Am_Request = true; -// APDU is processed here since you may want to change what -// services are supported and what services are rejected -void Process_APDU( - BACNET_ADDRESS *src, // source address - bool data_expecting_reply, - uint8_t *apdu, // APDU data - uint16_t pdu_len) // for confirmed messages -{ - uint8_t invoke_id = 0; - -} - void Process_PDU( BACNET_ADDRESS *src, // source address uint8_t *pdu, // PDU data @@ -84,7 +73,7 @@ void Process_PDU( } else { - Process_APDU( + apdu_handler( src, npdu_data.data_expecting_reply, &pdu[apdu_offset],