Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
NADS_DDSLIB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
NADS-Public
NADS_DDSLIB
Commits
ef6cd13e
Commit
ef6cd13e
authored
Jun 27, 2019
by
Simulator Operator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switched Char type to always append 0
parent
2d46a772
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
DDSSimClient.cpp
DDSSimClient.cpp
+1
-1
nadsddsimpl.h
src/nadsddsimpl.h
+3
-0
No files found.
DDSSimClient.cpp
View file @
ef6cd13e
...
@@ -143,7 +143,7 @@ namespace NDDSClient {
...
@@ -143,7 +143,7 @@ namespace NDDSClient {
else
else
_StateAck
->
asShort
()[
0
]
=
state
;
_StateAck
->
asShort
()[
0
]
=
state
;
if
(
_HeartBeat
&&
!
stateNotReady
)
{
if
(
_HeartBeat
&&
!
stateNotReady
&&
stateOK
)
{
_HeartBeat
->
asInt
()[
0
]
=
frame
;
_HeartBeat
->
asInt
()[
0
]
=
frame
;
_HeartBeat
->
Publish
();
_HeartBeat
->
Publish
();
}
}
...
...
src/nadsddsimpl.h
View file @
ef6cd13e
...
@@ -360,6 +360,9 @@ namespace NADSDDS {
...
@@ -360,6 +360,9 @@ namespace NADSDDS {
for
(
size_t
i
=
0
;
i
<
bufferSize
;
i
++
)
{
for
(
size_t
i
=
0
;
i
<
bufferSize
;
i
++
)
{
valIn
[
i
]
=
_buffer
.
data
()[
i
];
valIn
[
i
]
=
_buffer
.
data
()[
i
];
}
}
if
(
std
::
is_same
<
T
,
char
>::
value
){
valIn
.
push_back
(
0
);
}
_hasNewData
=
false
;
_hasNewData
=
false
;
}
}
bool
HasNewData
()
{
bool
HasNewData
()
{
...
...
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