Skip to content

Commit

Permalink
chore(place/area_management): expose internals
Browse files Browse the repository at this point in the history
for improved debugging
  • Loading branch information
stakach committed Feb 12, 2024
1 parent 0303f6c commit 8f7d2ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/place/area_management.cr
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class Place::AreaManagement < PlaceOS::Driver
)

# zone_id => sensors
@level_sensors : Hash(String, Hash(String, SensorMeta)) = {} of String => Hash(String, SensorMeta)
getter level_sensors : Hash(String, Hash(String, SensorMeta)) = {} of String => Hash(String, SensorMeta)
# zone_id => areas
@level_areas : Hash(String, Array(AreaConfig)) = {} of String => Array(AreaConfig)
getter level_areas : Hash(String, Array(AreaConfig)) = {} of String => Array(AreaConfig)
# area_id => area
@areas : Hash(String, AreaConfig) = {} of String => AreaConfig
getter areas : Hash(String, AreaConfig) = {} of String => AreaConfig

# zone_id => desk_ids
@duplication_factor : Float64 = 0.8
Expand All @@ -86,7 +86,7 @@ class Place::AreaManagement < PlaceOS::Driver
@rate_limit : Channel(Nil) = Channel(Nil).new
@update_lock : Mutex = Mutex.new
@include_sensors : Bool = false
@sensor_discovery = {} of String => SensorMeta
getter sensor_discovery = {} of String => SensorMeta

@desk_id_mappings = [] of String

Expand Down

0 comments on commit 8f7d2ad

Please sign in to comment.