Git
Wiki
Site
projects
/
soft
/
lpc122x
/
rfsub1GHz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc14d8
)
Add some more DEBUG preprocessor macro to prevent warning.
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Mon, 13 Jun 2022 15:06:26 +0000
(17:06 +0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Wed, 18 Jan 2023 01:59:57 +0000
(
02:59
+0100)
transparent_bridge/main.c
patch
|
blob
|
history
diff --git
a/transparent_bridge/main.c
b/transparent_bridge/main.c
index
d503ed4
..
6c2bbe3
100644
(file)
--- a/
transparent_bridge/main.c
+++ b/
transparent_bridge/main.c
@@
-194,7
+194,9
@@
void send_on_rf(void)
{
uint8_t cc_tx_data[RF_BUFF_LEN + 2];
uint8_t tx_len = cc_tx;
+#ifdef DEBUG
int ret = 0;
+#endif
/* Create a local copy */
memcpy((char*)&(cc_tx_data), (char*)cc_tx_buff, tx_len);
@@
-207,7
+209,10
@@
void send_on_rf(void)
if (cc1101_tx_fifo_state() != 0) {
cc1101_flush_tx_fifo();
}
- ret = cc1101_send_packet(cc_tx_data, tx_len);
+#ifdef DEBUG
+ ret =
+#endif
+ cc1101_send_packet(cc_tx_data, tx_len);
#ifdef DEBUG
uprintf(UART0, "## RF Tx ret: %d\n", ret);
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !