diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-12-12 17:22:15 -0500 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-12-12 17:22:15 -0500 |
| commit | 8c12eb2d5c480bd1a481097c9d0fbea6f8362015 (patch) | |
| tree | 933b13c8f37fefc0d335ffd45a5811759103eb56 /test_fw/src/bringup.cpp | |
| parent | 6c9e373cb60c36d77544932131648ed64f6a72b2 (diff) | |
enable rtt logging
Diffstat (limited to 'test_fw/src/bringup.cpp')
| -rw-r--r-- | test_fw/src/bringup.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test_fw/src/bringup.cpp b/test_fw/src/bringup.cpp index 07ac257..61b1cb0 100644 --- a/test_fw/src/bringup.cpp +++ b/test_fw/src/bringup.cpp @@ -1,5 +1,6 @@ #include "bringup.h" #include "board.h" +#include "log.h" #include <Wire.h> #include <SPI.h> @@ -20,13 +21,13 @@ void bringup::startup_checks(const etl::span<bringup::init_check> &checks) if (succeeded) continue; - Serial.print("checking " + name + "... "); + LOGGER.print("checking " + name + "... "); succeeded = f(); success = success && succeeded; - if (succeeded) Serial.println("ok"); - else Serial.println("bad"); + if (succeeded) LOGGER.println("ok"); + else LOGGER.println("bad"); } if (!success) |
