From 8c9a8ba57198d3560ca136715cbeb1dab32011ad Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 30 Jul 2010 15:03:47 +0000 Subject: [PATCH] Use drecate macro instead the warning key. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4106 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/keytag.c | 2 -- bertos/net/keytag.h | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bertos/net/keytag.c b/bertos/net/keytag.c index 2f75b3ee..dac1a11c 100644 --- a/bertos/net/keytag.c +++ b/bertos/net/keytag.c @@ -81,8 +81,6 @@ static void keytag_clearPkt(struct TagPacket *pkt) */ void keytag_poll(struct TagPacket *pkt) { - #warning __FILTER_NEXT_WARNING__ - #warning keytag_poll function is depreca use keytag_recv instead uint8_t buf[CONFIG_TAG_MAX_LEN]; int len; if ((len = keytag_recv(pkt, buf, sizeof(buf))) != EOF) diff --git a/bertos/net/keytag.h b/bertos/net/keytag.h index 2a2c5fbf..ee8258c3 100644 --- a/bertos/net/keytag.h +++ b/bertos/net/keytag.h @@ -43,7 +43,8 @@ #ifndef NET_KEYTAG_H #define NET_KEYTAG_H -#include +#include "cfg/cfg_keytag.h" +#include #include @@ -63,6 +64,6 @@ typedef struct TagPacket void keytag_init(struct TagPacket *pkt, struct KFile *comm, struct KFile *tag); int keytag_recv(struct TagPacket *pkt, uint8_t *tag, size_t len); -void keytag_poll(struct TagPacket *pkt); +DEPRECATED void keytag_poll(struct TagPacket *pkt); #endif /* NET_TAG_H */ -- 2.25.1