Resolve some const/static-able warnings

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Allen Hill
2026-07-08 14:16:38 -07:00
parent b194a6df2c
commit 82884c1305
3 changed files with 50 additions and 15 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ template <DeviceInterface... Devs> class Peripheral {
public:
using Error = detail::Error;
Peripheral(Bus bus, uint16_t address) : bus{bus}, address_{address} {
Peripheral(Bus &bus, uint16_t address) : bus{bus}, address_{address} {
bus.init();
(std::get<Devs>(devices_).init(), ...);
}
@@ -181,7 +181,7 @@ private:
dev.handle(in, out);
}
Bus bus;
Bus &bus;
uint16_t controller_ = 0;
const uint16_t address_;
std::tuple<Devs...> devices_;