mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
NEW: add HMS to query hms info
display hms msg in HMS tab of Monitor Change-Id: I4df1c63b104463ba62cdf7eb079a540a4176f8c5 Signed-off-by: Stone Li <stone.li@bambulab.com> (cherry picked from commit f4635d18f3383e70177536dfbe5edf2e1370b746)
This commit is contained in:
@@ -209,6 +209,18 @@ bool HMSItem::parse_hms_info(unsigned attr, unsigned code)
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string HMSItem::get_long_error_code()
|
||||
{
|
||||
char buf[64];
|
||||
::sprintf(buf, "%02X%02X%02X00000%1X%04X",
|
||||
this->module_id,
|
||||
this->module_num,
|
||||
this->part_id,
|
||||
(int)this->msg_level,
|
||||
this->msg_code);
|
||||
return std::string(buf);
|
||||
}
|
||||
|
||||
wxString HMSItem::get_module_name(ModuleID module_id)
|
||||
{
|
||||
switch (module_id)
|
||||
|
||||
Reference in New Issue
Block a user