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
1 changed files with 3 additions and 0 deletions

View File

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