Rev 250 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 250 | Rev 259 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | { |
69 | { |
70 | TTY->close(); |
70 | TTY->close(); |
Line 71... | Line 71... | ||
71 | 71 | ||
Line -... | Line 72... | ||
- | 72 | disconnect(TTY, SIGNAL(newDataReceived(const QByteArray &)), this, 0); |
|
- | 73 | ||
72 | disconnect(TTY, SIGNAL(newDataReceived(const QByteArray &)), this, 0); |
74 | b_isOpen = false; |
73 | 75 | ||
Line 74... | Line 76... | ||
74 | return b_isOpen; |
76 | return b_isOpen; |
75 | } |
77 | } |
Line 87... | Line 89... | ||
87 | TTY->setTimeout(0, 10); |
89 | TTY->setTimeout(0, 10); |
88 | TTY->enableSending(); |
90 | TTY->enableSending(); |
89 | TTY->enableReceiving(); |
91 | TTY->enableReceiving(); |
Line 90... | Line 92... | ||
90 | 92 | ||
91 | TTY->open(); |
- | |
- | 93 | TTY->open(); |
|
- | 94 | ToolBox::Wait(1000); |
|
92 | 95 | qDebug("Try Open"); |
|
93 | if (TTY->isOpen()) |
96 | if (TTY->isOpen()) |
- | 97 | { |
|
94 | { |
98 | qDebug("Opend"); |
Line 95... | Line 99... | ||
95 | connect(TTY, SIGNAL(newDataReceived(const QByteArray &)), this, SLOT(slot_newDataReceived(const QByteArray &))); |
99 | connect(TTY, SIGNAL(newDataReceived(const QByteArray &)), this, SLOT(slot_newDataReceived(const QByteArray &))); |
96 | 100 | ||
97 | TTY->receiveData(); |
101 | TTY->receiveData(); |