commit 3df272da53ea2b2a7c0f29e05f6b35ddad716ae7
parent 1ce56e25024e1e5b04f10cdb7aa1f2b850397b1b
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Mon, 5 Aug 2024 19:34:07 +0200
wait until boot done before enabling command line logging because thread is not available instantly anymore
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/xtTestConsole/xtTestConsole.cpp b/source/xtTestConsole/xtTestConsole.cpp
@@ -14,8 +14,6 @@ int main()
const std::unique_ptr uc(std::make_unique<xt::Xt>());
- uc->getHardware()->getDSP().thread().setLogToStdout(true);
-
constexpr uint32_t blockSize = 64;
std::vector<dsp56k::TWord> stereoOutput;
stereoOutput.resize(blockSize<<1);
@@ -27,6 +25,8 @@ int main()
while(!uc->isBootCompleted())
uc->process(blockSize);
+ uc->getHardware()->getDSP().thread().setLogToStdout(true);
+
auto processLength = [&](const uint32_t _length)
{
size_t total = 0;