Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
41771b3a
Commit
41771b3a
authored
Apr 22, 2020
by
Tomasz Wlostowski
Committed by
Grzegorz Daniluk
Apr 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/storage: dump calibration parameters on save
parent
93783a86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
storage.c
dev/storage.c
+13
-1
No files found.
dev/storage.c
View file @
41771b3a
...
...
@@ -763,6 +763,7 @@ out_close:
int
storage_save_calibration
(
void
)
{
int
ret
=
0
;
int
i
;
cal_data
.
magic
=
CAL_FILE_MAGIC
;
...
...
@@ -780,7 +781,18 @@ int storage_save_calibration(void)
!=
sizeof
(
cal_data
))
goto
out_close
;
storage_dbg
(
"saved %d bytes of calibration data
\n
"
,
sizeof
(
cal_data
));
storage_dbg
(
"Saved %d bytes of calibration data:
\n
"
,
sizeof
(
cal_data
));
for
(
i
=
0
;
i
<
cal_data
.
param_count
;
i
++
)
{
storage_dbg
(
" - param %c%c%c%c = %d
\n
"
,
((
cal_data
.
params
[
i
].
id
)
>>
24
)
&
0xff
,
((
cal_data
.
params
[
i
].
id
)
>>
16
)
&
0xff
,
((
cal_data
.
params
[
i
].
id
)
>>
8
)
&
0xff
,
((
cal_data
.
params
[
i
].
id
)
>>
0
)
&
0xff
,
cal_data
.
params
[
i
].
value
);
}
out_close:
sdbfs_close
(
&
wrc_sdbfs
);
...
...
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