Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
db160047
Commit
db160047
authored
Jan 04, 2021
by
Karol Hennessy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add timestamp to logmsg
parent
a9fa956e
Pipeline
#757
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
common.cpp
arduino/hev_prototype_v1/src/common.cpp
+2
-0
No files found.
arduino/hev_prototype_v1/src/common.cpp
View file @
db160047
...
...
@@ -258,7 +258,9 @@ void logMsg(String s)
CommsControl
*
comms
=
getGlobalComms
();
Payload
pl_send
;
uint32_t
tnow
=
static_cast
<
uint32_t
>
(
millis
());
logmsg_data_format
log
;
log
.
timestamp
=
tnow
;
sprintf
(
log
.
message
,
"%50s"
,
""
);
sprintf
(
log
.
message
,
"%s"
,
s
.
c_str
()
);
pl_send
.
setPayload
(
PRIORITY
::
DATA_ADDR
,
reinterpret_cast
<
void
*>
(
&
log
),
sizeof
(
log
));
...
...
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