aboutsummaryrefslogtreecommitdiff
path: root/kapi/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-02 15:43:34 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-02 15:43:34 +0200
commit33b43603936ed0108d67853727a17d6b3740b445 (patch)
tree114799ca5fe9c0d98f16bd075a1dc924f2ca1096 /kapi/include
parent3e80b6baa8f9666a9dd3cd4531bc68a3de4fee92 (diff)
downloadteachos-33b43603936ed0108d67853727a17d6b3740b445.tar.xz
teachos-33b43603936ed0108d67853727a17d6b3740b445.zip
kapi/bus: ensure all devices get initialized
Diffstat (limited to 'kapi/include')
-rw-r--r--kapi/include/kapi/devices/bus.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kapi/include/kapi/devices/bus.hpp b/kapi/include/kapi/devices/bus.hpp
index a5457e1..ee774b7 100644
--- a/kapi/include/kapi/devices/bus.hpp
+++ b/kapi/include/kapi/devices/bus.hpp
@@ -46,7 +46,7 @@ namespace kapi::devices
return std::ranges::fold_left(m_devices, true, [&](bool acc, auto & child) -> bool {
kstd::println("[kAPI:BUS] Initializing child device {}@{}", child->name(), name());
- return acc && child->init();
+ return child->init() && acc;
});
}