git.droids-corp.org
/
protos
/
xbee-avr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xbee: always dump rx frame when debug is on
[protos/xbee-avr.git]
/
parse_neighbor.c
diff --git
a/parse_neighbor.c
b/parse_neighbor.c
index
3faa0c7
..
d04092b
100644
(file)
--- a/
parse_neighbor.c
+++ b/
parse_neighbor.c
@@
-35,18
+35,12
@@
#include <string.h>
#include <parse.h>
#include <string.h>
#include <parse.h>
-
-#include "xbee_neighbor.h"
-#include "xbee_atcmd.h"
-#include "xbee_stats.h"
-#include "xbee_buf.h"
-#include "xbee_proto.h"
-#include "xbee.h"
+#include <xbee.h>
#include "parse_neighbor.h"
static int8_t
#include "parse_neighbor.h"
static int8_t
-parse_neighbor(
parse_pgm_token_hdr_t *
tk, const char *buf, void *res)
+parse_neighbor(
PGM_P
tk, const char *buf, void *res)
{
struct token_neighbor_data tkd;
struct xbee_dev *dev;
{
struct token_neighbor_data tkd;
struct xbee_dev *dev;
@@
-76,7
+70,7
@@
parse_neighbor(parse_pgm_token_hdr_t *tk, const char *buf, void *res)
}
static int8_t
}
static int8_t
-complete_get_nb_neighbor(
parse_pgm_token_hdr_t *
tk)
+complete_get_nb_neighbor(
PGM_P
tk)
{
struct token_neighbor_data tkd;
struct xbee_dev *dev;
{
struct token_neighbor_data tkd;
struct xbee_dev *dev;
@@
-94,7
+88,7
@@
complete_get_nb_neighbor(parse_pgm_token_hdr_t *tk)
}
static int8_t
}
static int8_t
-complete_get_elt_neighbor(
parse_pgm_token_hdr_t *
tk, int8_t idx,
+complete_get_elt_neighbor(
PGM_P
tk, int8_t idx,
char *dstbuf, uint8_t size)
{
struct token_neighbor_data tkd;
char *dstbuf, uint8_t size)
{
struct token_neighbor_data tkd;
@@
-123,9
+117,9
@@
complete_get_elt_neighbor(parse_pgm_token_hdr_t *tk, int8_t idx,
static int8_t
static int8_t
-help_neighbor(parse_pgm_token_hdr_t *tk, char *dstbuf,
- uint8_t size)
+help_neighbor(PGM_P tk, char *dstbuf, uint8_t size)
{
{
+ (void)tk;
snprintf_P(dstbuf, size, PSTR("Neighbor"));
return 0;
}
snprintf_P(dstbuf, size, PSTR("Neighbor"));
return 0;
}