Commit ef6cd13e by Simulator Operator

Switched Char type to always append 0

parent 2d46a772
......@@ -143,7 +143,7 @@ namespace NDDSClient {
else
_StateAck->asShort()[0] = state;
if (_HeartBeat && !stateNotReady) {
if (_HeartBeat && !stateNotReady && stateOK) {
_HeartBeat->asInt()[0] = frame;
_HeartBeat->Publish();
}
......
......@@ -360,6 +360,9 @@ namespace NADSDDS {
for (size_t i = 0; i < bufferSize; i++) {
valIn[i] = _buffer.data()[i];
}
if (std::is_same<T, char>::value){
valIn.push_back(0);
}
_hasNewData = false;
}
bool HasNewData() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment