Skip to content

Commit

Permalink
Explicitly associate a platform sensor to a Sensor in "Connect to Sen…
Browse files Browse the repository at this point in the history
…sor"

Sensor's description mentions that "A Sensor object has an associated
platform sensor", but the association was never made explicitly anywhere.

Related to #463.
  • Loading branch information
Raphael Kubo da Costa committed Mar 12, 2024
1 parent aab0ee4 commit 96a991b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,7 @@ to {{SensorErrorEventInit}}.
dependent on |type|.
1. If |sensor|.{{Sensor/[[frequency]]}} is less than |bounds|[0], set it to |bounds|[0].
1. If |sensor|.{{Sensor/[[frequency]]}} is greater than |bounds|[1], set it to |bounds|[1].
1. Set |sensor|'s associated [=platform sensor=] to |platformSensor|.
1. Return true.
</div>

Expand Down

0 comments on commit 96a991b

Please sign in to comment.