diff --git a/Storage/MassStorage/SCSI/SCSI.cpp b/Storage/MassStorage/SCSI/SCSI.cpp index 8d7909879..d14bdec22 100644 --- a/Storage/MassStorage/SCSI/SCSI.cpp +++ b/Storage/MassStorage/SCSI/SCSI.cpp @@ -74,7 +74,7 @@ void Bus::set_activity_observer(Activity::Observer *observer) { activity_observer_->register_led("SCSI"); } -BusState Bus::get_state() { +BusState Bus::get_state() const { return state_; } diff --git a/Storage/MassStorage/SCSI/SCSI.hpp b/Storage/MassStorage/SCSI/SCSI.hpp index c896f7c3b..f1fc87ef5 100644 --- a/Storage/MassStorage/SCSI/SCSI.hpp +++ b/Storage/MassStorage/SCSI/SCSI.hpp @@ -19,6 +19,8 @@ namespace SCSI { +/// Provides the current state of the SCSI bus, being comprised of a bitwise combination +/// of zero or more of the @c BusState flags defined below. typedef int BusState; constexpr BusState DefaultBusState = 0; @@ -118,7 +120,7 @@ class Bus: public ClockingHint::Source, public Activity::Source { /*! @returns the current state of the bus. */ - BusState get_state(); + BusState get_state() const; struct Observer { /// Reports to an observer that the bus changed from a previous state to @c new_state,