mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 19:28:14 -06:00
fix precedence errors (#3611)
Fix a handful of precedence errors and 1 logic/precedence error. None of the code will compile as intended without these changes. Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
9b76f51bd3
commit
1615832236
4 changed files with 8 additions and 8 deletions
|
@ -444,14 +444,14 @@ void MonitorPanel::show_status(int status)
|
|||
{
|
||||
if (!m_initialized) return;
|
||||
if (last_status == status)return;
|
||||
if (last_status & (int)MonitorStatus::MONITOR_CONNECTING != 0) {
|
||||
if ((last_status & (int)MonitorStatus::MONITOR_CONNECTING) != 0) {
|
||||
NetworkAgent* agent = wxGetApp().getAgent();
|
||||
json j;
|
||||
j["dev_id"] = obj ? obj->dev_id : "obj_nullptr";
|
||||
if (status & (int)MonitorStatus::MONITOR_DISCONNECTED != 0) {
|
||||
if ((status & (int)MonitorStatus::MONITOR_DISCONNECTED) != 0) {
|
||||
j["result"] = "failed";
|
||||
}
|
||||
else if (status & (int)MonitorStatus::MONITOR_NORMAL != 0) {
|
||||
else if ((status & (int)MonitorStatus::MONITOR_NORMAL) != 0) {
|
||||
j["result"] = "success";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue