From a257f185c93ff304e6ed1b358ed3266bf211c971 Mon Sep 17 00:00:00 2001 From: redpanther Date: Tue, 26 Jan 2016 15:08:21 +0100 Subject: [PATCH] increase fadecandy maximum amount of leds remove debug code Former-commit-id: d74025128978e4e26d49fb57215f660bd824895b --- libsrc/leddevice/LedDeviceFadeCandy.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libsrc/leddevice/LedDeviceFadeCandy.cpp b/libsrc/leddevice/LedDeviceFadeCandy.cpp index e8c178d1..a9548842 100755 --- a/libsrc/leddevice/LedDeviceFadeCandy.cpp +++ b/libsrc/leddevice/LedDeviceFadeCandy.cpp @@ -1,6 +1,6 @@ #include "LedDeviceFadeCandy.h" -static const unsigned MAX_NUM_LEDS = 512; +static const unsigned MAX_NUM_LEDS = 10000; static const unsigned OPC_BROADCAST = 0; // OPC broadcast channel static const unsigned OPC_SET_PIXELS = 0; // OPC command codes static const unsigned OPC_HEADER_SIZE = 4; // OPC header size @@ -32,11 +32,8 @@ bool LedDeviceFadeCandy::isConnected() bool LedDeviceFadeCandy::tryConnect() { if ( _client.state() == QAbstractSocket::UnconnectedState ) { - qDebug("connecting to %s %i",_host.c_str(),_port); - _client.connectToHost( _host.c_str(), _port); - if ( _client.waitForConnected(1000) ) - qDebug("connected"); + _client.waitForConnected(1000); } return isConnected();