mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 01:28:39 +00:00
mark get_track_progress_ms as const
This commit is contained in:
@@ -179,7 +179,7 @@ void SendspinHub::on_metadata(const sendspin::ServerMetadataStateObject &metadat
|
||||
}
|
||||
|
||||
// THREAD CONTEXT: Main loop (invoked from Sendspin components)
|
||||
uint32_t SendspinHub::get_track_progress_ms() {
|
||||
uint32_t SendspinHub::get_track_progress_ms() const {
|
||||
if (this->is_ready()) {
|
||||
return this->metadata_role_->get_track_progress_ms();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ class SendspinHub final : public Component,
|
||||
}
|
||||
|
||||
/// @brief Returns the interpolated track progress in milliseconds, or 0 if the hub is not yet ready.
|
||||
uint32_t get_track_progress_ms();
|
||||
uint32_t get_track_progress_ms() const;
|
||||
#endif
|
||||
|
||||
#ifdef USE_SENDSPIN_PLAYER
|
||||
|
||||
Reference in New Issue
Block a user