Commit 89f2ce87a91db8d97298f5b7c1694d8ca037dd9a
1 parent
6218939788
Exists in
master
and in
2 other branches
버그 수정
- 점화 아이콘이 표현되지 않는 문제 수정 - 점화 아이콘 표현 조건 변경 (해당 번지 값의 각 비트마다 다른 의미가 있음) - app-prime-modbus가 app-prime-gui에 보내는 UDP 패킷의 크기가 잘못된 문제 수정
Showing
3 changed files
with
5 additions
and
8 deletions
Show diff stats
app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c
| ... | ... | @@ -443,7 +443,7 @@ static void on_rcv_control( void){ |
| 443 | 443 | printf( "manual_onoff22 = 0x%04x\n", bit_onoff22); |
| 444 | 444 | |
| 445 | 445 | // GUI로 전송 |
| 446 | - gui_send_data_to_gui( ( char *)&oven, sizeof( gui_oven_state_t)); | |
| 446 | + gui_send_data_to_gui( ( char *)&oven, sizeof( gui_oven_control_t)); | |
| 447 | 447 | |
| 448 | 448 | // 다음 단계 실행 |
| 449 | 449 | run_next_step_work(); | ... | ... |
app/gui/oven_control/ignitionicon.cpp
| ... | ... | @@ -6,13 +6,10 @@ QPixmap *IgnitionIcon::icon = Q_NULLPTR; |
| 6 | 6 | |
| 7 | 7 | IgnitionIcon::IgnitionIcon(QWidget *parent) : QLabel(parent) |
| 8 | 8 | { |
| 9 | - if (icon == Q_NULLPTR) | |
| 10 | - icon = new QPixmap(":/images/symbol/inigited.png"); | |
| 11 | - | |
| 12 | 9 | connect(&timer, SIGNAL(timeout()), SLOT(check())); |
| 13 | 10 | timer.start(1000); |
| 14 | 11 | |
| 15 | - setPixmap(*icon); | |
| 12 | + setPixmap(QPixmap(":/images/symbol/ignited.png")); | |
| 16 | 13 | |
| 17 | 14 | check(); |
| 18 | 15 | } | ... | ... |
app/gui/oven_control/udphandler.h
| ... | ... | @@ -69,11 +69,11 @@ public: |
| 69 | 69 | switch (num) |
| 70 | 70 | { |
| 71 | 71 | case 1: |
| 72 | - return state.burner1_state != 0; | |
| 72 | + return (state.burner1_state & 0x08) != 0; | |
| 73 | 73 | case 2: |
| 74 | - return state.burner2_state != 0; | |
| 74 | + return (state.burner2_state & 0x08) != 0; | |
| 75 | 75 | case 3: |
| 76 | - return state.burner3_state != 0; | |
| 76 | + return (state.burner3_state & 0x08) != 0; | |
| 77 | 77 | default: |
| 78 | 78 | return false; |
| 79 | 79 | } | ... | ... |