Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using emberAfSendImmediateDefaultResponse. #25064

Conversation

bzbarsky-apple
Copy link
Contributor

REVIEW NOTE: This PR consists of three commits:

  1. A search-and-replace for some common patterns.
  2. A manual commit to make things compile after the search-and-replace.
  3. A manual commit to remove the other uses of emberAfSendImmediateDefaultResponse

This commit was generated by installing the git-extras package and
running the following commands:

  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND);' 'commandObj->AddStatus(commandPath, Status::InvalidCommand);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_SUCCESS);' 'commandObj->AddStatus(commandPath, Status::Success);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_FAILURE);' 'commandObj->AddStatus(commandPath, Status::Failure);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND);' 'commandObj->AddStatus(commandPath, Status::UnsupportedCommand);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_MALFORMED_COMMAND);' 'commandObj->AddStatus(commandPath, Status::InvalidAction);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_CONSTRAINT_ERROR);' 'commandObj->AddStatus(commandPath, Status::ConstraintError);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_NOT_FOUND);' 'commandObj->AddStatus(commandPath, Status::NotFound);'
@github-actions
Copy link

github-actions bot commented Feb 14, 2023

PR #25064: Size comparison from a6d2883 to 01f9682

Increases above 0.2%:

platform target config section a6d2883 01f9682 change % change
esp32 all-clusters-app c3devkit (read/write) 1519706 1585242 65536 4.3
Increases (37 builds for bl602, bl702, cc13x2_26x2, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section a6d2883 01f9682 change % change
bl602 lighting-app bl602 (read/write) 1347010 1348034 1024 0.1
.text 1023524 1024546 1022 0.1
bl602+rpc (read/write) 1392458 1393218 760 0.1
.text 1054458 1055224 766 0.1
bl702 lighting-app bl702 (read/write) 1185363 1186387 1024 0.1
.debug_frame 491764 492096 332 0.1
.debug_line 5277493 5277787 294 0.0
.debug_loc 3409452 3411576 2124 0.1
.debug_str 3559730 3560208 478 0.0
.strtab 572957 573472 515 0.1
.text 952920 953944 1024 0.1
bl702+rpc (read/write) 1278519 1279543 1024 0.1
.debug_frame 519512 519844 332 0.1
.debug_line 5676500 5676794 294 0.0
.debug_loc 3606370 3608494 2124 0.1
.debug_str 3963222 3963712 490 0.0
.strtab 634016 634531 515 0.1
.text 1030320 1031340 1020 0.1
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 678395 679035 640 0.1
.text 589676 590316 640 0.1
all-clusters-minimal-app LP_CC2652R7 (read only) 642219 642387 168 0.0
.text 563704 563872 168 0.0
lock-ftd LP_CC2652R7 (read only) 675279 675407 128 0.0
.text 598096 598224 128 0.0
lock-mtd LP_CC2652R7 (read only) 661707 661851 144 0.0
.text 557936 558080 144 0.0
pump-app LP_CC2652R7 (read only) 688339 688435 96 0.0
.text 597032 597136 104 0.0
pump-controller-app LP_CC2652R7 (read/write) 175684 175708 24 0.0
shell LP_CC2652R7 (read only) 669658 670298 640 0.1
.text 584192 584832 640 0.1
cc32xx lock CC3235SF_LAUNCHXL (read only) 640577 640945 368 0.1
.debug_frame 299864 299900 36 0.0
.debug_line 2654650 2654846 196 0.0
.debug_str 3001983 3001984 1 0.0
.text 532792 533160 368 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 585014 585326 312 0.1
.app_xip_area 461800 462112 312 0.1
lock cyw930739m2evb_01 (read/write) 588986 589130 144 0.0
.app_xip_area 460476 460620 144 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550202 550266 64 0.0
.app_xip_area 432492 432556 64 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1038816 1039576 760 0.1
.text 855164 855924 760 0.1
BRD4187C (read/write) 1135744 1136512 768 0.1
.text 975352 976120 768 0.1
lock-app BRD4161A+wf200 (read/write) 1066416 1066552 136 0.0
.text 911236 911372 136 0.0
window-app BRD4187C (read/write) 1137360 1137544 184 0.0
.text 975336 975520 184 0.0
esp32 all-clusters-app c3devkit (read only) 1047848 1048842 994 0.1
(read/write) 1519706 1585242 65536 4.3
.flash.text 1047848 1048842 994 0.1
m5stack (read only) 1100195 1100899 704 0.1
.flash.text 1094811 1095515 704 0.1
linux thermostat-no-ble arm64 (read only) 2512388 2512468 80 0.0
.text 2099136 2099216 80 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2464912 2465040 128 0.0
.text 1427556 1427684 128 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1162552 1163312 760 0.1
text 804656 805424 768 0.1
nrf7002dk_nrf5340_cpuapp (read/write) 1367836 1368600 764 0.1
text 764428 765192 764 0.1
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1108548 1108876 328 0.0
text 774636 774964 328 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1757956 1759308 1352 0.1
.debug_frame 374040 374328 288 0.1
.debug_line 3789424 3789924 500 0.0
.debug_str 3509822 3510300 478 0.0
.strtab 578434 579029 595 0.1
.text 1557080 1558432 1352 0.1
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1699540 1700108 568 0.0
.debug_frame 376484 376764 280 0.1
.debug_line 3797920 3798373 453 0.0
.debug_str 3495575 3496053 478 0.0
.text 1499480 1500048 568 0.0
light cy8ckit_062s2_43012 (read/write) 1612596 1613372 776 0.0
.debug_frame 346900 347024 124 0.0
.debug_info 22913745 22914349 604 0.0
.debug_line 3350067 3350397 330 0.0
.debug_loc 3343673 3344550 877 0.0
.debug_str 3298532 3299010 478 0.0
.strtab 474810 475325 515 0.1
.text 1420848 1421624 776 0.1
lock cy8ckit_062s2_43012 (read/write) 1646852 1647212 360 0.0
.debug_frame 348860 348900 40 0.0
.debug_line 3351827 3352015 188 0.0
.text 1450128 1450488 360 0.0
qpg lighting-app qpg6105+debug (read/write) 1149220 1149764 544 0.0
.text 596320 596864 544 0.1
lock-app qpg6105+debug (read/write) 1116964 1117124 160 0.0
.text 564060 564220 160 0.0
telink all-clusters-app tlsr9518adk80d (read/write) 1013700 1014600 900 0.1
text 684662 685562 900 0.1
all-clusters-minimal-app tlsr9518adk80d (read/write) 950084 950552 468 0.0
text 646938 647410 472 0.1
lighting-app tlsr9518adk80d (read/write) 948036 948652 616 0.1
text 657284 657896 612 0.1
ota-requestor-app tlsr9518adk80d (read/write) 882036 882140 104 0.0
text 601626 601732 106 0.0
thermostat tlsr9518adk80d (read/write) 874904 874932 28 0.0
text 593464 593498 34 0.0
Decreases (19 builds for bl702, cc13x2_26x2, cc32xx, esp32, nrfconnect, psoc6, telink)
platform target config section a6d2883 01f9682 change % change
bl702 lighting-app bl702 .debug_abbrev 1551885 1551786 -99 -0.0
.debug_aranges 134280 134272 -8 -0.0
.debug_info 40624236 40624230 -6 -0.0
.debug_ranges 371744 371736 -8 -0.0
.symtab 173536 173488 -48 -0.0
bl702+rpc .debug_abbrev 1700393 1700294 -99 -0.0
.debug_aranges 142512 142504 -8 -0.0
.debug_info 45033171 45033163 -8 -0.0
.debug_ranges 395512 395504 -8 -0.0
.symtab 192000 191952 -48 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 172796 172156 -640 -0.4
lock-ftd LP_CC2652R7 (read/write) 173264 173136 -128 -0.1
lock-mtd LP_CC2652R7 (read/write) 182092 181948 -144 -0.1
pump-app LP_CC2652R7 (read/write) 160940 160844 -96 -0.1
.rodata 90827 90819 -8 -0.0
pump-controller-app LP_CC2652R7 (read only) 673707 673683 -24 -0.0
.text 586360 586336 -24 -0.0
shell LP_CC2652R7 (read/write) 183604 182964 -640 -0.3
cc32xx lock CC3235SF_LAUNCHXL .debug_abbrev 930806 930710 -96 -0.0
.debug_aranges 87360 87352 -8 -0.0
.debug_info 20307078 2030674 -338 -0.0
.debug_loc 2787110 2786809 -301 -0.0
.debug_ranges 280904 280896 -8 -0.0
.strtab 375952 375806 -146 -0.0
.symtab 255888 255760 -128 -0.1
esp32 all-clusters-app m5stack (read/write) 501351 501335 -16 -0.0
.flash.rodata 250484 250468 -16 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 rodata 134468 134460 -8 -0.0
nrf7002dk_nrf5340_cpuapp rodata 211900 211896 -4 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 rodata 111456 111448 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_abbrev 1254352 1254216 -136 -0.0
.debug_aranges 111416 111408 -8 -0.0
.debug_info 28027823 2802680 -1022 -0.0
.debug_loc 3682009 3681497 -512 -0.0
.debug_ranges 362608 362600 -8 -0.0
.symtab 425104 424976 -128 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_abbrev 1239987 1239759 -228 -0.0
.debug_aranges 110680 110672 -8 -0.0
.debug_info 27574458 27573694 -764 -0.0
.debug_loc 3665740 3665112 -628 -0.0
.debug_ranges 360576 360568 -8 -0.0
.strtab 539642 539640 -2 -0.0
.symtab 410384 410256 -128 -0.0
light cy8ckit_062s2_43012 .debug_abbrev 1074285 1074186 -99 -0.0
.debug_aranges 102888 102880 -8 -0.0
.debug_ranges 319752 319744 -8 -0.0
.symtab 378128 378000 -128 -0.0
lock cy8ckit_062s2_43012 .debug_abbrev 1076025 1075929 -96 -0.0
.debug_aranges 103328 103320 -8 -0.0
.debug_info 23144485 2314444 -44 -0.0
.debug_loc 3366614 3366322 -292 -0.0
.debug_ranges 321664 321656 -8 -0.0
.debug_str 3315820 3315814 -6 -0.0
.strtab 478223 478077 -146 -0.0
.symtab 380320 380192 -128 -0.0
telink contact-sensor-app tlsr9518adk80d (read/write) 854944 854936 -8 -0.0
text 577836 577824 -12 -0.0
light-switch-app tlsr9518adk80d (read/write) 870700 870692 -8 -0.0
text 591882 591872 -10 -0.0
Full report (40 builds for bl602, bl702, cc13x2_26x2, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section a6d2883 01f9682 change % change
bl602 lighting-app bl602 (read/write) 1347010 1348034 1024 0.1
.bss 94810 94810 0 0.0
.data 9736 9736 0 0.0
.text 1023524 1024546 1022 0.1
bl602+rpc (read/write) 1392458 1393218 760 0.1
.bss 102858 102858 0 0.0
.data 10128 10128 0 0.0
.text 1054458 1055224 766 0.1
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1185363 1186387 1024 0.1
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 69913 69913 0 0.0
.bss_psram 30064 30064 0 0.0
.comment 48 48 0 0.0
.data 4056 4056 0 0.0
.debug_abbrev 1551885 1551786 -99 -0.0
.debug_aranges 134280 134272 -8 -0.0
.debug_frame 491764 492096 332 0.1
.debug_info 40624236 40624230 -6 -0.0
.debug_line 5277493 5277787 294 0.0
.debug_loc 3409452 3411576 2124 0.1
.debug_ranges 371744 371736 -8 -0.0
.debug_str 3559730 3560208 478 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 107328 107328 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 572957 573472 515 0.1
.symtab 173536 173488 -48 -0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
952920 953944 1024 0.1
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1278519 1279543 1024 0.1
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 77961 77961 0 0.0
.bss_psram 30320 30320 0 0.0
.comment 48 48 0 0.0
.data 4608 4608 0 0.0
.debug_abbrev 1700393 1700294 -99 -0.0
.debug_aranges 142512 142504 -8 -0.0
.debug_frame 519512 519844 332 0.1
.debug_info 45033171 45033163 -8 -0.0
.debug_line 5676500 5676794 294 0.0
.debug_loc 3606370 3608494 2124 0.1
.debug_ranges 395512 395504 -8 -0.0
.debug_str 3963222 3963712 490 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121968 121968 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 634016 634531 515 0.1
.symtab 192000 191952 -48 -0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1030320 1031340 1020 0.1
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 678395 679035 640 0.1
(read/write) 172796 172156 -640 -0.4
.bss 80884 80884 0 0.0
.data 3384 3384 0 0.0
.rodata 88403 88403 0 0.0
.text 589676 590316 640 0.1
all-clusters-minimal-app LP_CC2652R7 (read only) 642219 642387 168 0.0
(read/write) 157576 157576 0 0.0
.bss 80076 80076 0 0.0
.data 3384 3384 0 0.0
.rodata 78195 78195 0 0.0
.text 563704 563872 168 0.0
lock-ftd LP_CC2652R7 (read only) 675279 675407 128 0.0
(read/write) 173264 173136 -128 -0.1
.bss 78324 78324 0 0.0
.data 3312 3312 0 0.0
.rodata 76703 76703 0 0.0
.text 598096 598224 128 0.0
lock-mtd LP_CC2652R7 (read only) 661707 661851 144 0.0
(read/write) 182092 181948 -144 -0.1
.bss 73580 73580 0 0.0
.data 3312 3312 0 0.0
.rodata 103291 103291 0 0.0
.text 557936 558080 144 0.0
pump-app LP_CC2652R7 (read only) 688339 688435 96 0.0
(read/write) 160940 160844 -96 -0.1
.bss 78292 78292 0 0.0
.data 3276 3276 0 0.0
.rodata 90827 90819 -8 -0.0
.text 597032 597136 104 0.0
pump-controller-app LP_CC2652R7 (read only) 673707 673683 -24 -0.0
(read/write) 175684 175708 24 0.0
.bss 78404 78404 0 0.0
.data 3300 3300 0 0.0
.rodata 86867 86867 0 0.0
.text 586360 586336 -24 -0.0
shell LP_CC2652R7 (read only) 669658 670298 640 0.1
(read/write) 183604 182964 -640 -0.3
.bss 82956 82956 0 0.0
.data 3380 3380 0 0.0
.rodata 85154 85154 0 0.0
.text 584192 584832 640 0.1
cc32xx lock CC3235SF_LAUNCHXL (read only) 640577 640945 368 0.1
(read/write) 204100 204100 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197504 197504 0 0.0
.comment 194 194 0 0.0
.data 1476 1476 0 0.0
.debug_abbrev 930806 930710 -96 -0.0
.debug_aranges 87360 87352 -8 -0.0
.debug_frame 299864 299900 36 0.0
.debug_info 20307078 2030674 -338 -0.0
.debug_line 2654650 2654846 196 0.0
.debug_loc 2787110 2786809 -301 -0.0
.debug_ranges 280904 280896 -8 -0.0
.debug_str 3001983 3001984 1 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105665 105665 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 375952 375806 -146 -0.0
.symtab 255888 255760 -128 -0.1
.text 0 0 0 0.0
532792 533160 368 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 585014 585326 312 0.1
.app_xip_area 461800 462112 312 0.1
.bss 65656 65656 0 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 588986 589130 144 0.0
.app_xip_area 460476 460620 144 0.0
.bss 70944 70944 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550202 550266 64 0.0
.app_xip_area 432492 432556 64 0.0
.bss 60200 60200 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1038816 1039576 760 0.1
.bss 181584 181584 0 0.0
.data 2044 2044 0 0.0
.text 855164 855924 760 0.1
BRD4187C (read/write) 1135744 1136512 768 0.1
.bss 133264 133264 0 0.0
.data 2532 2532 0 0.0
.text 975352 976120 768 0.1
lock-app BRD4161A+wf200 (read/write) 1066416 1066552 136 0.0
.bss 153104 153104 0 0.0
.data 2052 2052 0 0.0
.text 911236 911372 136 0.0
window-app BRD4187C (read/write) 1137360 1137544 184 0.0
.bss 134856 134856 0 0.0
.data 2572 2572 0 0.0
.text 975336 975520 184 0.0
esp32 all-clusters-app c3devkit (read only) 1047848 1048842 994 0.1
(read/write) 1519706 1585242 65536 4.3
.dram0.bss 77968 77968 0 0.0
.dram0.data 13792 13792 0 0.0
.flash.rodata 221728 221728 0 0.0
.flash.text 1047848 1048842 994 0.1
.iram0.text 72896 72896 0 0.0
m5stack (read only) 1100195 1100899 704 0.1
(read/write) 501351 501335 -16 -0.0
.dram0.bss 83016 83016 0 0.0
.dram0.data 34080 34080 0 0.0
.flash.rodata 250484 250468 -16 -0.0
.flash.text 1094811 1095515 704 0.1
.iram0.text 124855 124855 0 0.0
linux chip-tool-ipv6only arm64 (read only) 12001540 12001540 0 0.0
(read/write) 727720 727720 0 0.0
.bss 34248 34248 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 670008 670008 0 0.0
.dynamic 560 560 0 0.0
.got 15256 15256 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 584148 584148 0 0.0
.text 9690628 9690628 0 0.0
thermostat-no-ble arm64 (read only) 2512388 2512468 80 0.0
(read/write) 145256 145256 0 0.0
.bss 56472 56472 0 0.0
.data 1824 1824 0 0.0
.data.rel.ro 77496 77496 0 0.0
.dynamic 560 560 0 0.0
.got 5408 5408 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 151136 151136 0 0.0
.text 2099136 2099216 80 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2464912 2465040 128 0.0
.bss 215908 215908 0 0.0
.data 5880 5880 0 0.0
.text 1427556 1427684 128 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1162552 1163312 760 0.1
bss 143539 143539 0 0.0
rodata 134468 134460 -8 -0.0
text 804656 805424 768 0.1
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1367836 1368600 764 0.1
bss 106002 106002 0 0.0
rodata 211900 211896 -4 -0.0
text 764428 765192 764 0.1
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1108548 1108876 328 0.0
bss 142695 142695 0 0.0
rodata 111456 111448 -8 -0.0
text 774636 774964 328 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840856 840856 0 0.0
(read/write) 1757956 1759308 1352 0.1
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189816 189816 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2672 2672 0 0.0
.debug_abbrev 1254352 1254216 -136 -0.0
.debug_aranges 111416 111408 -8 -0.0
.debug_frame 374040 374328 288 0.1
.debug_info 28027823 2802680 -1022 -0.0
.debug_line 3789424 3789924 500 0.0
.debug_loc 3682009 3681497 -512 -0.0
.debug_ranges 362608 362600 -8 -0.0
.debug_str 3509822 3510300 478 0.0
.heap 840856 840856 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 578434 579029 595 0.1
.symtab 425104 424976 -128 -0.0
.text 1557080 1558432 1352 0.1
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841672 841672 0 0.0
(read/write) 1699540 1700108 568 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189008 189008 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1239987 1239759 -228 -0.0
.debug_aranges 110680 110672 -8 -0.0
.debug_frame 376484 376764 280 0.1
.debug_info 27574458 27573694 -764 -0.0
.debug_line 3797920 3798373 453 0.0
.debug_loc 3665740 3665112 -628 -0.0
.debug_ranges 360576 360568 -8 -0.0
.debug_str 3495575 3496053 478 0.0
.heap 841672 841672 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 539642 539640 -2 -0.0
.symtab 410384 410256 -128 -0.0
.text 1499480 1500048 568 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849984 849984 0 0.0
(read/write) 1612596 1613372 776 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180896 180896 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1074285 1074186 -99 -0.0
.debug_aranges 102888 102880 -8 -0.0
.debug_frame 346900 347024 124 0.0
.debug_info 22913745 22914349 604 0.0
.debug_line 3350067 3350397 330 0.0
.debug_loc 3343673 3344550 877 0.0
.debug_ranges 319752 319744 -8 -0.0
.debug_str 3298532 3299010 478 0.0
.heap 849984 849984 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474810 475325 515 0.1
.symtab 378128 378000 -128 -0.0
.text 1420848 1421624 776 0.1
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845008 845008 0 0.0
(read/write) 1646852 1647212 360 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185864 185864 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1076025 1075929 -96 -0.0
.debug_aranges 103328 103320 -8 -0.0
.debug_frame 348860 348900 40 0.0
.debug_info 23144485 2314444 -44 -0.0
.debug_line 3351827 3352015 188 0.0
.debug_loc 3366614 3366322 -292 -0.0
.debug_ranges 321664 321656 -8 -0.0
.debug_str 3315820 3315814 -6 -0.0
.heap 845008 845008 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 478223 478077 -146 -0.0
.symtab 380320 380192 -128 -0.0
.text 1450128 1450488 360 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1149220 1149764 544 0.0
.bss 99908 99908 0 0.0
.data 848 848 0 0.0
.text 596320 596864 544 0.1
lock-app qpg6105+debug (read/write) 1116964 1117124 160 0.0
.bss 96404 96404 0 0.0
.data 860 860 0 0.0
.text 564060 564220 160 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1013700 1014600 900 0.1
bss 97912 97912 0 0.0
text 684662 685562 900 0.1
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 950084 950552 468 0.0
bss 96964 96964 0 0.0
text 646938 647410 472 0.1
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 854944 854936 -8 -0.0
bss 89084 89084 0 0.0
text 577836 577824 -12 -0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 870700 870692 -8 -0.0
bss 89168 89168 0 0.0
text 591882 591872 -10 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 948036 948652 616 0.1
bss 97320 97320 0 0.0
text 657284 657896 612 0.1
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 882036 882140 104 0.0
bss 90120 90120 0 0.0
text 601626 601732 106 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 874904 874932 28 0.0
bss 90560 90560 0 0.0
text 593464 593498 34 0.0

auto-merge was automatically disabled February 15, 2023 14:43

Merge commits are not allowed on this repository

@bzbarsky-apple bzbarsky-apple merged commit 1c37b17 into project-chip:master Feb 15, 2023
@bzbarsky-apple bzbarsky-apple deleted the no-immediate-default-response branch February 15, 2023 15:58
@Jerry-ESP
Copy link
Contributor

Jerry-ESP commented Mar 3, 2023

@bzbarsky-apple In the commit: 7990de5, there are errors in groups-client.cpp, identify-client.cpp and scene-client.cpp. The function "commandObj->AddStatus(commandPath, Status::Success);" calling use an undefined variable "commandPath", so if you build this three file, it will raise a build error.
企业微信截图_16778331974967

@bzbarsky-apple
Copy link
Contributor Author

That function would never actually be called, for what it's worth. Those files are not compiled by anything in-tree, and they don't really work right if they were @Jerry-ESP.

@bzbarsky-apple
Copy link
Contributor Author

@Jerry-ESP #25493 removes those files.

lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
* Stop using emberAfSendImmediateDefaultResponse.

This commit was generated by installing the git-extras package and
running the following commands:

  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND);' 'commandObj->AddStatus(commandPath, Status::InvalidCommand);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_SUCCESS);' 'commandObj->AddStatus(commandPath, Status::Success);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_FAILURE);' 'commandObj->AddStatus(commandPath, Status::Failure);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND);' 'commandObj->AddStatus(commandPath, Status::UnsupportedCommand);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_MALFORMED_COMMAND);' 'commandObj->AddStatus(commandPath, Status::InvalidAction);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_CONSTRAINT_ERROR);' 'commandObj->AddStatus(commandPath, Status::ConstraintError);'
  git sed 'emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_NOT_FOUND);' 'commandObj->AddStatus(commandPath, Status::NotFound);'

* Manual changes to make the mass-replaces compile.

* Manual changes to remove emberAfSendImmediateDefaultResponse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants