sif::buffer: if disabeld do not print

This commit is contained in:
Ulrich Mohr 2022-09-08 11:47:40 +02:00
parent 7dec45ccf2
commit d52f335455

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)) {