mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
increase fadecandy maximum amount of leds
remove debug code Former-commit-id: d74025128978e4e26d49fb57215f660bd824895b
This commit is contained in:
parent
6b052081f7
commit
a257f185c9
@ -1,6 +1,6 @@
|
|||||||
#include "LedDeviceFadeCandy.h"
|
#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_BROADCAST = 0; // OPC broadcast channel
|
||||||
static const unsigned OPC_SET_PIXELS = 0; // OPC command codes
|
static const unsigned OPC_SET_PIXELS = 0; // OPC command codes
|
||||||
static const unsigned OPC_HEADER_SIZE = 4; // OPC header size
|
static const unsigned OPC_HEADER_SIZE = 4; // OPC header size
|
||||||
@ -32,11 +32,8 @@ bool LedDeviceFadeCandy::isConnected()
|
|||||||
bool LedDeviceFadeCandy::tryConnect()
|
bool LedDeviceFadeCandy::tryConnect()
|
||||||
{
|
{
|
||||||
if ( _client.state() == QAbstractSocket::UnconnectedState ) {
|
if ( _client.state() == QAbstractSocket::UnconnectedState ) {
|
||||||
qDebug("connecting to %s %i",_host.c_str(),_port);
|
|
||||||
|
|
||||||
_client.connectToHost( _host.c_str(), _port);
|
_client.connectToHost( _host.c_str(), _port);
|
||||||
if ( _client.waitForConnected(1000) )
|
_client.waitForConnected(1000);
|
||||||
qDebug("connected");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return isConnected();
|
return isConnected();
|
||||||
|
Loading…
Reference in New Issue
Block a user