Board: Nucleo F439ZI
I have a class which prints strings via the modm logger. As soon as i add a Mutex as an Class-Attribut I receive with hTerm only the first letter of the String, even if i not use the Mutex at all. If I initilazie the Mutex with an nullPtr I receive the whole string.
Why is this happening?
I'm a FreeRtos Noob, so i'm happy for every input.
Class "testMutex.cpp" :
#include <modm/board.hpp>
#include <modm/processing.hpp>
class TestMutex
{
public:
TestMutex() = default;
void
hello()
{
modm::log::debug << "Welcome to Debug Stream example modm" << modm::endl;
}
private:
modm::rtos::Mutex mMutex;
int mValue;
};
main:
#include "testMutex.cpp"
#include <modm/board.hpp>
#undef MODM_LOG_LEVEL
#define MODM_LOG_LEVEL modm::log::DEBUG
int
main()
{
Board::initialize();
TestMutex helloMutex;
helloMutex.hello();
}
Board: Nucleo F439ZI
I have a class which prints strings via the modm logger. As soon as i add a Mutex as an Class-Attribut I receive with hTerm only the first letter of the String, even if i not use the Mutex at all. If I initilazie the Mutex with an nullPtr I receive the whole string.
Why is this happening?
I'm a FreeRtos Noob, so i'm happy for every input.
Class "testMutex.cpp" :
main: