Skip to content

Commit

Permalink
Align Unit Localization cluster XML to spec changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Feb 23, 2023
1 parent b236bfb commit b4e35e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
-->
<configurator>
<domain name="CHIP" />
<enum name="TempUnit" type="ENUM8">
<enum name="TempUnitEnum" type="ENUM8">
<cluster code="0x002d"/>
<item name="Fahrenheit" value="0x00"/>
<item name="Celsius" value="0x01"/>
Expand All @@ -35,7 +35,7 @@ limitations under the License.
mechanism by which they can be configured to use a user’s preferred unit.</description>
<globalAttribute side="either" code="0xFFFD" value="1"/>
<!-- Base data types -->
<attribute side="server" code="0x00" define="TEMPERATURE_UNIT" type="TempUnit" min="0" max="2" writable="true" optional="true">TemperatureUnit</attribute>
<attribute side="server" code="0x00" define="TEMPERATURE_UNIT" type="TempUnitEnum" min="0" max="2" writable="true" optional="true">TemperatureUnit</attribute>
</cluster>
<bitmap name="UnitLocalizationFeature" type="BITMAP32">
<cluster code="0x002d"/>
Expand Down
10 changes: 8 additions & 2 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3066,7 +3066,10 @@
- CalendarType
- HourFormat
UnitLocalization:
- TempUnit
# TempUnitEnum was originally just named TempUnit, but
# we generate the same API for both of those names, so the name
# can just change here.
- TempUnitEnum
PowerSource:
- BatChargeFault
- BatChargeLevel
Expand Down Expand Up @@ -3335,7 +3338,10 @@
- 12hr
- 24hr
UnitLocalization:
TempUnit:
# TempUnitEnum was originally just named TempUnit, but
# we generate the same API for both of those names, so the name
# can just change here.
TempUnitEnum:
- Fahrenheit
- Celsius
- Kelvin
Expand Down

0 comments on commit b4e35e4

Please sign in to comment.