Merge pull request 'sif::buffer: if disabeld do not print' (#680) from mohr/enableDisable into development

Reviewed-on: fsfw/fsfw#680
This commit is contained in:
Robin Müller 2022-09-12 14:12:13 +02:00
commit 80467bf097

View File

@ -58,6 +58,9 @@ ServiceInterfaceBuffer::ServiceInterfaceBuffer(std::string setMessage, bool addC
}
void ServiceInterfaceBuffer::putChars(char const* begin, char const* end) {
if (not isActive) {
return;
}
char array[BUF_SIZE];
uint32_t length = end - begin;
if (length > sizeof(array)) {