buf renamed to streambuf

This commit is contained in:
Robin Müller 2020-06-04 13:26:35 +02:00
parent 9361568b45
commit 764608005b
3 changed files with 7 additions and 6 deletions

View File

@ -97,7 +97,8 @@ ReturnValue_t MessageQueue::sendMessageFromMessageQueue(MessageQueueId_t sendTo,
bool ignoreFault) {
message->setSender(sentFrom);
BaseType_t result = xQueueSendToBack(reinterpret_cast<void*>(sendTo),reinterpret_cast<const void*>(message->getBuffer()), 0);
BaseType_t result = xQueueSendToBack(reinterpret_cast<QueueHandle_t>(sendTo),
reinterpret_cast<const void*>(message->getBuffer()), 0);
if (result != pdPASS) {
if (!ignoreFault) {
InternalErrorReporterIF* internalErrorReporter = objectManager->get<InternalErrorReporterIF>(

View File

@ -2,14 +2,14 @@
ServiceInterfaceStream::ServiceInterfaceStream(std::string setMessage,
bool errStream, bool addCrToPreamble, uint16_t port) :
std::ostream(&buf),
buf(setMessage, errStream, addCrToPreamble, port) {
std::ostream(&streambuf),
streambuf(setMessage, errStream, addCrToPreamble, port) {
}
void ServiceInterfaceStream::setActive( bool myActive) {
this->buf.isActive = myActive;
this->streambuf.isActive = myActive;
}
std::string ServiceInterfaceStream::getPreamble() {
return buf.getPreamble();
return streambuf.getPreamble();
}

View File

@ -21,7 +21,7 @@ extern std::ostream error;
class ServiceInterfaceStream :
public std::ostream {
protected:
ServiceInterfaceBuffer buf;
ServiceInterfaceBuffer streambuf;
public:
/**
* This constructor is used by specifying the preamble message.