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
79eb4107
Commit
79eb4107
authored
Oct 20, 2014
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28 from lnxbil/printDetails-fix
character fix
parents
04165e4d
422495ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
RF24.cpp
RF24.cpp
+2
-2
No files found.
RF24.cpp
View file @
79eb4107
...
...
@@ -314,7 +314,7 @@ void RF24::print_observe_tx(uint8_t value)
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'
:
'\a'
;
printf_P
(
PSTR
(
PRIPSTR
"
\t
%c ="
),
name
,
extra_tab
);
while
(
qty
--
)
printf_P
(
PSTR
(
" 0x%02x"
),
read_register
(
reg
++
));
...
...
@@ -325,7 +325,7 @@ void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty)
void
RF24
::
print_address_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'
:
'\a'
;
printf_P
(
PSTR
(
PRIPSTR
"
\t
%c ="
),
name
,
extra_tab
);
while
(
qty
--
)
...
...
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