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
91df6f6d
Commit
91df6f6d
authored
Jun 27, 2011
by
maniacbug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug of not including name. Also added extra tab on short strings.
parent
92373ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
RF24.cpp
RF24.cpp
+5
-2
No files found.
RF24.cpp
View file @
91df6f6d
...
...
@@ -210,7 +210,8 @@ void RF24::print_observe_tx(uint8_t value)
void
RF24
::
print_byte_register
(
prog_char
*
name
,
uint8_t
reg
)
{
printf_P
(
PSTR
(
"%S
\t
= 0x%02x
\n\r
"
),
read_register
(
reg
));
char
extra_tab
=
strlen_P
(
name
)
<
8
?
'\t'
:
0
;
printf_P
(
PSTR
(
"%S
\t
%c = 0x%02x
\n\r
"
),
name
,
extra_tab
,
read_register
(
reg
));
}
/******************************************************************/
...
...
@@ -219,7 +220,9 @@ void RF24::print_address_register(prog_char* name, uint8_t reg)
{
uint8_t
buffer
[
5
];
read_register
(
reg
,
buffer
,
sizeof
buffer
);
printf_P
(
PSTR
(
"%S
\t
= 0x"
),
name
);
char
extra_tab
=
strlen_P
(
name
)
<
8
?
'\t'
:
0
;
printf_P
(
PSTR
(
"%S
\t
%c = 0x"
),
name
,
extra_tab
);
uint8_t
*
bufptr
=
buffer
+
sizeof
buffer
;
while
(
bufptr
--
>
buffer
)
...
...
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