removed some more debug prints

master
nymea 2019-07-11 12:37:35 +02:00
parent dbef0ff202
commit 73caf35616
1 changed files with 3 additions and 5 deletions

View File

@ -419,9 +419,8 @@ void SoundTouch::onRestRequestFinished() {
if (xml.readNextStartElement()) { if (xml.readNextStartElement()) {
if (xml.name() == "info") { if (xml.name() == "info") {
InfoObject info; InfoObject info;
qDebug(dcBose) << "Info Request";
if(xml.attributes().hasAttribute("deviceID")) { if(xml.attributes().hasAttribute("deviceID")) {
qDebug(dcBose) << "Device ID" << xml.attributes().value("deviceID").toString(); //qDebug(dcBose) << "Device ID" << xml.attributes().value("deviceID").toString();
info.deviceID = xml.attributes().value("deviceID").toString(); info.deviceID = xml.attributes().value("deviceID").toString();
} }
while(xml.readNextStartElement()){ while(xml.readNextStartElement()){
@ -453,12 +452,11 @@ void SoundTouch::onRestRequestFinished() {
} }
} }
} else if(xml.name() == "networkInfo"){ } else if(xml.name() == "networkInfo"){
qDebug(dcBose) << "network Info";
while (xml.readNextStartElement()) { while (xml.readNextStartElement()) {
if (xml.name() == "macAddress") { if (xml.name() == "macAddress") {
qDebug(dcBose) << "macAddress" << xml.readElementText(); info.networkInfo.macAddress = xml.readElementText();
} else if(xml.name() == "ipAddress") { } else if(xml.name() == "ipAddress") {
qDebug(dcBose) << "ipAddress" << xml.readElementText(); info.networkInfo.ipAddress = xml.readElementText();
} else { } else {
xml.skipCurrentElement(); xml.skipCurrentElement();
} }