Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
7005c479
Commit
7005c479
authored
Jun 22, 2015
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/Updates'
parents
417e6e52
594a949b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
RF24.cpp
RF24.cpp
+8
-12
No files found.
RF24.cpp
View file @
7005c479
...
@@ -388,11 +388,9 @@ void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty)
...
@@ -388,11 +388,9 @@ void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty)
//char extra_tab = strlen_P(name) < 8 ? '\t' : 0;
//char extra_tab = strlen_P(name) < 8 ? '\t' : 0;
//printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab);
//printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab);
#if defined (RF24_LINUX)
#if defined (RF24_LINUX)
char
extra_tab
=
strlen_P
(
name
)
<
8
?
'\t'
:
0
;
printf
(
"%s
\t
="
,
name
);
printf
(
"%s
\t
%c ="
,
name
,
extra_tab
);
#else
#else
char
extra_tab
=
strlen_P
(
name
)
<
8
?
'\t'
:
0
;
printf_P
(
PSTR
(
PRIPSTR
"
\t
="
),
name
);
printf_P
(
PSTR
(
PRIPSTR
"
\t
%c ="
),
name
,
extra_tab
);
#endif
#endif
while
(
qty
--
)
while
(
qty
--
)
printf_P
(
PSTR
(
" 0x%02x"
),
read_register
(
reg
++
));
printf_P
(
PSTR
(
" 0x%02x"
),
read_register
(
reg
++
));
...
@@ -405,11 +403,9 @@ void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty)
...
@@ -405,11 +403,9 @@ void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty)
{
{
#if defined (RF24_LINUX)
#if defined (RF24_LINUX)
char
extra_tab
=
strlen_P
(
name
)
<
8
?
'\t'
:
0
;
printf
(
"%s
\t
="
,
name
);
printf
(
"%s
\t
%c ="
,
name
,
extra_tab
);
#else
#else
char
extra_tab
=
strlen_P
(
name
)
<
8
?
'\t'
:
0
;
printf_P
(
PSTR
(
PRIPSTR
"
\t
="
),
name
);
printf_P
(
PSTR
(
PRIPSTR
"
\t
%c ="
),
name
,
extra_tab
);
#endif
#endif
while
(
qty
--
)
while
(
qty
--
)
{
{
...
@@ -555,14 +551,14 @@ void RF24::printDetails(void)
...
@@ -555,14 +551,14 @@ void RF24::printDetails(void)
print_address_register
(
PSTR
(
"RX_ADDR_P0-1"
),
RX_ADDR_P0
,
2
);
print_address_register
(
PSTR
(
"RX_ADDR_P0-1"
),
RX_ADDR_P0
,
2
);
print_byte_register
(
PSTR
(
"RX_ADDR_P2-5"
),
RX_ADDR_P2
,
4
);
print_byte_register
(
PSTR
(
"RX_ADDR_P2-5"
),
RX_ADDR_P2
,
4
);
print_address_register
(
PSTR
(
"TX_ADDR"
),
TX_ADDR
);
print_address_register
(
PSTR
(
"TX_ADDR
\t
"
),
TX_ADDR
);
print_byte_register
(
PSTR
(
"RX_PW_P0-6"
),
RX_PW_P0
,
6
);
print_byte_register
(
PSTR
(
"RX_PW_P0-6"
),
RX_PW_P0
,
6
);
print_byte_register
(
PSTR
(
"EN_AA"
),
EN_AA
);
print_byte_register
(
PSTR
(
"EN_AA
\t
"
),
EN_AA
);
print_byte_register
(
PSTR
(
"EN_RXADDR"
),
EN_RXADDR
);
print_byte_register
(
PSTR
(
"EN_RXADDR"
),
EN_RXADDR
);
print_byte_register
(
PSTR
(
"RF_CH"
),
RF_CH
);
print_byte_register
(
PSTR
(
"RF_CH
\t
"
),
RF_CH
);
print_byte_register
(
PSTR
(
"RF_SETUP"
),
RF_SETUP
);
print_byte_register
(
PSTR
(
"RF_SETUP"
),
RF_SETUP
);
print_byte_register
(
PSTR
(
"CONFIG"
),
CONFIG
);
print_byte_register
(
PSTR
(
"CONFIG
\t
"
),
CONFIG
);
print_byte_register
(
PSTR
(
"DYNPD/FEATURE"
),
DYNPD
,
2
);
print_byte_register
(
PSTR
(
"DYNPD/FEATURE"
),
DYNPD
,
2
);
#if defined(__arm__) || defined (RF24_LINUX) || defined (__ARDUINO_X86__) || defined(LITTLEWIRE) || defined (RF24_BBB)
#if defined(__arm__) || defined (RF24_LINUX) || defined (__ARDUINO_X86__) || defined(LITTLEWIRE) || defined (RF24_BBB)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment