Merge branch 'development' into mueller/refactor-tmtc-stack
This commit is contained in:
commit
a64a04d7fe
@ -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)) {
|
||||||
|
@ -1 +1,3 @@
|
|||||||
add_subdirectory(gpio)
|
add_subdirectory(gpio)
|
||||||
|
|
||||||
|
target_sources(${LIB_FSFW_NAME} PRIVATE printChar.c)
|
10
src/fsfw_hal/common/printChar.c
Normal file
10
src/fsfw_hal/common/printChar.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
void __attribute__((weak)) printChar(const char* character, bool errStream) {
|
||||||
|
if (errStream) {
|
||||||
|
fprintf(stderr, "%c", *character);
|
||||||
|
} else {
|
||||||
|
printf("%c", *character);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user