Display maintain info

This commit is contained in:
Aoran Zeng 2025-08-10 19:07:05 +08:00
parent bef1fc9f26
commit b1ee34862c
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -581,7 +581,6 @@ iterate_menu_ (TargetRegisterInfo_t registry[], size_t size, const char *input,
}
/**
*
*/
@ -624,17 +623,29 @@ get_target (const char *input, TargetOp code, char *option)
if (TargetOp_Set_Source==code)
{
if (target->setfn) target->setfn(option);
if (target->setfn)
{
target->setfn(option);
cli_print_target_maintain_info (target, input);
}
else chsrc_error (xy_strjoin (3, "暂未对 ", input, " 实现 set 功能,邀您帮助: chsrc issue"));
}
else if (TargetOp_Reset_Source==code)
{
if (target->resetfn) target->resetfn(option);
if (target->resetfn)
{
target->resetfn(option);
cli_print_target_maintain_info (target, input);
}
else chsrc_error (xy_strjoin (3, "暂未对 ", input, " 实现 reset 功能,邀您帮助: chsrc issue"));
}
else if (TargetOp_Get_Source==code)
{
if (target->getfn) target->getfn("");
if (target->getfn)
{
target->getfn("");
cli_print_target_maintain_info (target, input);
}
else chsrc_error (xy_strjoin (3, "暂未对 ", input, " 实现 get 功能,邀您帮助: chsrc issue"));
}
else if (TargetOp_List_Config==code)
@ -668,8 +679,7 @@ get_target (const char *input, TargetOp code, char *option)
return true;
}
if (TargetOp_Set_Source==code
|| TargetOp_Measure_Source==code)
if (TargetOp_Set_Source==code || TargetOp_Measure_Source==code)
{
cli_notify_lastly_for_users();
}