somethings wrong
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
9a3fd51337
commit
7c821e33f0
@ -907,12 +907,12 @@ ReturnValue_t PlocSupvUartManager::sendMessage(CookieIF* cookie, const uint8_t*
|
|||||||
if (sendData == nullptr or sendLen == 0) {
|
if (sendData == nullptr or sendLen == 0) {
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
lock->lockMutex();
|
{
|
||||||
if (state == InternalState::SLEEPING or state == InternalState::DEDICATED_REQUEST) {
|
MutexGuard mg(lock);
|
||||||
lock->unlockMutex();
|
if (state == InternalState::SLEEPING or state == InternalState::DEDICATED_REQUEST) {
|
||||||
return FAILED;
|
return FAILED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
lock->unlockMutex();
|
|
||||||
return encodeAndSendPacket(sendData, sendLen);
|
return encodeAndSendPacket(sendData, sendLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -977,8 +977,9 @@ ReturnValue_t PlocSupvUartManager::encodeAndSendPacket(const uint8_t* sendData,
|
|||||||
arrayprinter::print(encodedSendBuf.data(), encodedLen);
|
arrayprinter::print(encodedSendBuf.data(), encodedLen);
|
||||||
size_t bytesWritten = write(serialPort, encodedSendBuf.data(), encodedLen);
|
size_t bytesWritten = write(serialPort, encodedSendBuf.data(), encodedLen);
|
||||||
if (bytesWritten != encodedLen) {
|
if (bytesWritten != encodedLen) {
|
||||||
sif::warning << "ScexUartReader::sendMessage: Sending ping command to solar experiment failed"
|
sif::warning
|
||||||
<< std::endl;
|
<< "PlocSupvUartManager::sendMessage: Sending ping command to solar experiment failed"
|
||||||
|
<< std::endl;
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user