Skip to content

Commit

Permalink
Resolve default countryCodeSize when not set on commissioner
Browse files Browse the repository at this point in the history
  • Loading branch information
adabreuti committed Mar 28, 2022
1 parent 125e73c commit e109b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,7 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio
#endif
if (status != CHIP_NO_ERROR)
{
actualCountryCodeSize = 2;
ChipLogError(Controller, "Unable to find country code, defaulting to XX");
}
chip::CharSpan countryCode(countryCodeStr, actualCountryCodeSize);
Expand Down

0 comments on commit e109b99

Please sign in to comment.