mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 04:11:50 +08:00
FIX:fixed some unsupported HMS messages that cannot be displayed
Change-Id: Ib5acffb1e2c94bae56aed89fbb71a7a15a660485 (cherry picked from commit f736b576bb809e15f9d90ea49f343c43f2fc7367)
This commit is contained in:
parent
ce7c28b134
commit
18c7f9bd4d
@ -253,10 +253,7 @@ bool HMSItem::parse_hms_info(unsigned attr, unsigned code)
|
|||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
unsigned int model_id_int = (attr >> 24) & 0xFF;
|
unsigned int model_id_int = (attr >> 24) & 0xFF;
|
||||||
if (model_id_int < (unsigned) MODULE_MAX)
|
this->module_id = (ModuleID)model_id_int;
|
||||||
this->module_id = (ModuleID)model_id_int;
|
|
||||||
else
|
|
||||||
this->module_id = MODULE_UKNOWN;
|
|
||||||
this->module_num = (attr >> 16) & 0xFF;
|
this->module_num = (attr >> 16) & 0xFF;
|
||||||
this->part_id = (attr >> 8) & 0xFF;
|
this->part_id = (attr >> 8) & 0xFF;
|
||||||
this->reserved = (attr >> 0) & 0xFF;
|
this->reserved = (attr >> 0) & 0xFF;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user