problems with output on host

This commit is contained in:
Robin Müller 2020-09-30 21:07:30 +02:00
parent 399807f230
commit da79e0ec07
2 changed files with 12 additions and 4 deletions

View File

@ -2,6 +2,7 @@
#include <fsfw/tasks/TaskFactory.h> #include <fsfw/tasks/TaskFactory.h>
#include <iostream> #include <iostream>
#include <stdio.h>
#include <version.h> #include <version.h>
#include <unistd.h> #include <unistd.h>
@ -21,7 +22,7 @@ int main(void)
std::cout << "-- " << __DATE__ << " " << __TIME__ << " --" << std::endl; std::cout << "-- " << __DATE__ << " " << __TIME__ << " --" << std::endl;
InitMission::initMission(); InitMission::initMission();
std::cout << std::endl;
for(;;) { for(;;) {
// suspend main thread by sleeping it. // suspend main thread by sleeping it.
TaskFactory::delayTask(5000); TaskFactory::delayTask(5000);

View File

@ -16,10 +16,17 @@
#include <iostream> #include <iostream>
// This is configured for linux without \cr // This is configured for linux without \cr
ServiceInterfaceStream sif::debug("DEBUG", false); #ifdef LINUX
ServiceInterfaceStream sif::info("INFO", false); ServiceInterfaceStream sif::debug("DEBUG");
ServiceInterfaceStream sif::warning("WARNING", false); ServiceInterfaceStream sif::info("INFO");
ServiceInterfaceStream sif::warning("WARNING");
ServiceInterfaceStream sif::error("ERROR", false, false, true); ServiceInterfaceStream sif::error("ERROR", false, false, true);
#else
ServiceInterfaceStream sif::debug("DEBUG", true);
ServiceInterfaceStream sif::info("INFO", true);
ServiceInterfaceStream sif::warning("WARNING", true);
ServiceInterfaceStream sif::error("ERROR", true, false, true);
#endif
ObjectManagerIF *objectManager = nullptr; ObjectManagerIF *objectManager = nullptr;