177 |
Serial.close(); |
Serial.close(); |
178 |
Serial.open( config.comport, Baud ); |
Serial.open( config.comport, Baud ); |
179 |
} |
} |
180 |
catch (exception* e) |
catch (...) |
181 |
{ |
{ |
182 |
MessageBox( "Serial.open() exception" ); |
MessageBox( "Serial.open() exception" ); |
183 |
return 0; |
return 0; |
189 |
{ |
{ |
190 |
Serial.open( config.comport, Baud ); |
Serial.open( config.comport, Baud ); |
191 |
} |
} |
192 |
catch (exception* e) |
catch (...) |
193 |
{ |
{ |
194 |
MessageBox( "Serial.open() exception 2" ); |
MessageBox( "Serial.open() exception 2" ); |
195 |
return 0; |
return 0; |
644 |
{ |
{ |
645 |
data.push_back(smscount[i]); |
data.push_back(smscount[i]); |
646 |
} |
} |
|
AppendText(CString(&data[0])); |
|
647 |
writeFrame(data); |
writeFrame(data); |
648 |
|
|
649 |
|
data.push_back(0); //Zero terminate the string befor pasting it to logwindows |
650 |
|
AppendText(CString(&data[0])); |
651 |
Sleep(200); |
Sleep(200); |
652 |
ReadSms(); |
ReadSms(); |
653 |
|
|