26 className = this->staticMetaObject.className();
46 QByteArray ba = comPort.toLatin1();
50 if (QFile::exists(comPort) ==
false)
52 emit
message(QString(
"<font color=\"#FF0000\">ERROR: %1 not found!</font>").arg(comPort));
92 emit
message( QString(
"<font color=\"#FF0000\">ERROR '%1' (InterfaceAvr::sendChar)!<font>").arg(strerror(result)) );
138 for (
int i=0; i<
string.length(); i++)
141 if (
sendChar(
string.at(i).toAscii(), callingClassName) ==
false)
165 unsigned char character;
177 ba.append(character);
180 }
while ( (result == 1) && (character !=
'#') );
185 qDebug() <<
"error at receiveString called from" << callingClassName;
190 string = QString::fromUtf8(ba.data(), ba.length());
206 unsigned char character = 0;
213 if (
receiveChar(&character, callingClassName) ==
false)
236 intValue = (character << 8);
242 if (
receiveChar(&character, callingClassName) ==
false)
252 *value = (intValue + character);
261 bool conversion =
false;
265 string =
string.remove(
starter);
270 value =
string.toInt(&conversion);