From 329ed34c326b40bc8e88de4b34ac5a74eee9cffb Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sat, 16 Jul 2022 16:39:04 +0200 Subject: [PATCH] init serialout in constructor --- c_os/user/devices/SerialOut.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/c_os/user/devices/SerialOut.h b/c_os/user/devices/SerialOut.h index 92939b6..4cca2dc 100644 --- a/c_os/user/devices/SerialOut.h +++ b/c_os/user/devices/SerialOut.h @@ -16,7 +16,9 @@ private: int is_transmit_empty(); public: - SerialOut() : com1(0x3f8) {} + SerialOut() : com1(0x3f8) { + this->init(); + } int init() const;