Skip to content

Commit 1190336

Browse files
carol-applepull[bot]
authored andcommitted
[OTA] Align StatusEnum data type with spec (#12928)
1 parent d6a4ba4 commit 1190336

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/app/clusters/ota-requestor/OTARequestor.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ void OTARequestor::OnQueryImageResponse(void * context, const QueryImageResponse
140140
break;
141141
case OTAQueryStatus::kNotAvailable:
142142
break;
143-
// TODO: Add download protocol not supported
143+
case OTAQueryStatus::kDownloadProtocolNotSupported:
144+
break;
144145
// Issue #9524 should handle all response status appropriately
145146
default:
146147
break;

src/app/zap-templates/zcl/data-model/chip/chip-ota.xml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ limitations under the License.
2121
<item name="UpdateAvailable" value="0x0"/>
2222
<item name="Busy" value="0x1"/>
2323
<item name="NotAvailable" value="0x2"/>
24+
<item name="DownloadProtocolNotSupported" value="0x3"/>
2425
</enum>
2526
<enum name="OTAApplyUpdateAction" type="ENUM8">
2627
<cluster code="0x0029"/>

src/controller/python/chip/clusters/Objects.py

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zzz_generated/app-common/app-common/zap-generated/cluster-objects.h

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)