diff --git a/examples/common/pigweed/rpc_services/Device.h b/examples/common/pigweed/rpc_services/Device.h index 1427d48d391431..e82095a59a309e 100644 --- a/examples/common/pigweed/rpc_services/Device.h +++ b/examples/common/pigweed/rpc_services/Device.h @@ -372,7 +372,7 @@ class Device : public pw_rpc::nanopb::Device::Service if (DeviceLayer::GetDeviceInstanceInfoProvider()->GetSerialNumber(response.serial_number, sizeof(response.serial_number)) != CHIP_NO_ERROR) { - return pw::Status::Internal(); + response.serial_number[0] = '\0'; // optional serial field not set. } // Create buffer for QR code that can fit max size and null terminator.