mirror of
https://github.com/RustyRaptor/Pixelpulse2.git
synced 2026-12-03 15:35:16 -07:00
Disable all debug messages
Signed-off-by: Claudiu Pop <Claudiu.Pop@analog.com>
This commit is contained in:
1 parent
5517dd35eb
commit
e4ecac1459
4 files changed
+20
-18
No files matched your search
@@ -4,6 +4,8 @@ QT += qml quick widgets
|
||||
QT += network
|
||||
CONFIG += c++11
|
||||
|
||||
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|
||||
|
||||
isEmpty(LIBUSB_LIBRARY) {
|
||||
LIBUSB_LIBRARY = "C:\libusb\MinGW32\static\libusb-1.0.a"
|
||||
}
|
||||
|
||||
+6
-6
@@ -64,8 +64,8 @@ Item {
|
||||
// }
|
||||
|
||||
function toggle() {
|
||||
console.log("queue size"+queueSize)
|
||||
console.log("min freq"+minOutSignalFreq)
|
||||
//console.log("queue size"+queueSize)
|
||||
//console.log("min freq"+minOutSignalFreq)
|
||||
if (!session.active) {
|
||||
session.sampleRate = sampleRate
|
||||
session.sampleCount = sampleCount
|
||||
@@ -75,8 +75,8 @@ Item {
|
||||
}
|
||||
}
|
||||
onSampleCountChanged: {
|
||||
console.log("onSampleCountChanged");
|
||||
console.log(sampleCount);
|
||||
//console.log("onSampleCountChanged");
|
||||
//console.log(sampleCount);
|
||||
session.sampleCount = sampleCount;
|
||||
}
|
||||
|
||||
@@ -100,8 +100,8 @@ Item {
|
||||
// Restart the session so the new sampling mode takes effect
|
||||
//restartAfterStop = true;
|
||||
//session.cancel();
|
||||
console.log("onContinuousChanged",continuous);
|
||||
//console.log("session cont",session.
|
||||
//console.log("onContinuousChanged",continuous);
|
||||
////console.log("session cont",session.
|
||||
//session.restart();
|
||||
if(session.active){
|
||||
session.cancel();
|
||||
|
||||
@@ -78,13 +78,13 @@ ColumnLayout {
|
||||
}
|
||||
devicesModel.clear();
|
||||
}
|
||||
console.log(programmingModeDeviceDetect()+" detected devices");
|
||||
//console.log(programmingModeDeviceDetect()+" detected devices");
|
||||
if(programmingModeDeviceDetect()){
|
||||
if(!justUpdated){
|
||||
updateNeeded = true;
|
||||
}
|
||||
justUpdated = false;
|
||||
console.log("update needded: " + updateNeeded);
|
||||
//console.log("update needded: " + updateNeeded);
|
||||
}
|
||||
for (var i = 0; i < session.devices.length; i++) {
|
||||
var device = session.devices[i];
|
||||
@@ -101,7 +101,7 @@ ColumnLayout {
|
||||
updateNeeded = true;
|
||||
}
|
||||
|
||||
console.log("Right before dev insert \n");
|
||||
//console.log("Right before dev insert \n");
|
||||
devicesModel.insert(devicesModel.count,
|
||||
{"name": device.label,
|
||||
"uid":device.UUID,
|
||||
@@ -218,13 +218,13 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
onLatestVersionChanged: {
|
||||
console.log("latestVersion changed to: ", latestVersion);
|
||||
//console.log("latestVersion changed to: ", latestVersion);
|
||||
if (latestVersion === 'v0.0')
|
||||
return;
|
||||
|
||||
deviceManagerListFill();
|
||||
JSUtils.getFirmwareURL(function(url) {
|
||||
console.log("LOG URL: ", url);
|
||||
//console.log("LOG URL: ", url);
|
||||
session.downloadFromUrl(url);
|
||||
});
|
||||
}
|
||||
|
||||
+7
-7
@@ -77,39 +77,39 @@ var requestFile = function(url, callback) {
|
||||
|
||||
xhr.onloadstart = (function(myxhr) {
|
||||
return function() {
|
||||
console.log('LOG: onloadstart: ', myxhr.status);
|
||||
//console.log('LOG: onloadstart: ', myxhr.status);
|
||||
}
|
||||
})(xhr);
|
||||
xhr.onprogress = (function(myxhr) {
|
||||
return function() {
|
||||
console.log('LOG: progress: ', myxhr.status);
|
||||
//console.log('LOG: progress: ', myxhr.status);
|
||||
}
|
||||
})(xhr);
|
||||
xhr.onerror = (function(myxhr) {
|
||||
return function() {
|
||||
console.log('LOG: error: ', myxhr.status);
|
||||
//console.log('LOG: error: ', myxhr.status);
|
||||
}
|
||||
})(xhr);
|
||||
xhr.ontimeout = (function(myxhr) {
|
||||
return function() {
|
||||
console.log('LOG: timeout: ', myxhr.status);
|
||||
//console.log('LOG: timeout: ', myxhr.status);
|
||||
}
|
||||
})(xhr);
|
||||
xhr.onloadend = (function(myxhr) {
|
||||
return function() {
|
||||
console.log('LOG: onloadend: ', myxhr.status);
|
||||
//console.log('LOG: onloadend: ', myxhr.status);
|
||||
}
|
||||
})(xhr);
|
||||
xhr.onreadystatechange = (function(myxhr) {
|
||||
return function() {
|
||||
if(myxhr) console.log('LOG: status ready: ', myxhr.readyState);//if(myxhr.readyState === 4)
|
||||
if(myxhr) //console.log('LOG: status ready: ', myxhr.readyState);//if(myxhr.readyState === 4)
|
||||
if(myxhr.readyState === 4 && myxhr.status === 200) callback(myxhr)
|
||||
}
|
||||
})(xhr);
|
||||
|
||||
xhr.onload = (function(myxhr) {
|
||||
return function() {
|
||||
console.log('LOG: status load: ', myxhr.status);
|
||||
//console.log('LOG: status load: ', myxhr.status);
|
||||
if(myxhr.status === 200) callback(myxhr)
|
||||
}
|
||||
})(xhr);
|
||||
|
||||
Reference in new issue
Block a user