[cli][tcat] fix 'devid' command output to comply to README file description and default OT CLI style (#11802)

This commit is contained in:
Esko Dijk
2025-10-06 12:27:01 -07:00
committed by Jonathan Hui
parent 392ac442b7
commit 710fbe07a9
+7 -3
View File
@@ -293,11 +293,16 @@ exit:
/**
* @cli tcat devid
* @code
* tcat devid ianapen f378aabb
* tcat devid f378aabb
* Done
* @endcode
* @code
* tcat devid
* f378aabb
* Done
* @endcode
* @cparam tcat devid [@ca{value}|clear]
* * The `value` hexstring value of the ID. `clear` is a special value removing previously set ID.
* * The `value` hexstring value of the ID. `clear` is a special value to remove the previously set ID.
* @par
* Sets/clears vendor specific device ID.
*/
@@ -309,7 +314,6 @@ template <> otError Tcat::Process<Cmd("devid")>(Arg aArgs[])
{
if (sGeneralDeviceId.mDeviceIdLen != 0)
{
OutputLine("TCAT DeviceId:");
OutputBytesLine(sGeneralDeviceId.mDeviceId, sGeneralDeviceId.mDeviceIdLen);
}
ExitNow();