mirror of
https://github.com/anklimov/lighthub
synced 2025-12-08 04:39:49 +03:00
artnet hung fixed
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
export FLAGS="$FLAGS -DWiz5500"
|
export FLAGS="$FLAGS -DWiz5500"
|
||||||
#export FLAGS="$FLAGS -DARTNET_ENABLE"
|
export FLAGS="$FLAGS -DARTNET_ENABLE"
|
||||||
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_due-5500.sh
|
CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_due-5500.sh
|
||||||
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
|
if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then
|
||||||
source $CUSTOM_BUILD_FLAGS_FILE
|
source $CUSTOM_BUILD_FLAGS_FILE
|
||||||
|
|||||||
@@ -258,9 +258,6 @@ lan_status lanLoop() {
|
|||||||
if (!configOk)
|
if (!configOk)
|
||||||
lanStatus = loadConfigFromHttp(0, NULL);
|
lanStatus = loadConfigFromHttp(0, NULL);
|
||||||
else lanStatus = IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER;
|
else lanStatus = IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER;
|
||||||
#ifdef _artnet
|
|
||||||
if (artnet) artnet->begin();
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER:
|
case IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER:
|
||||||
@@ -623,6 +620,9 @@ void onInitialStateInitLAN() {
|
|||||||
debugSerial<<F("Got IP address:");
|
debugSerial<<F("Got IP address:");
|
||||||
printIPAddress(Ethernet.localIP());
|
printIPAddress(Ethernet.localIP());
|
||||||
lanStatus = HAVE_IP_ADDRESS;//1;
|
lanStatus = HAVE_IP_ADDRESS;//1;
|
||||||
|
#ifdef _artnet
|
||||||
|
if (artnet) artnet->begin();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -759,7 +759,7 @@ void applyConfig() {
|
|||||||
dmxArr = aJson.getObjectItem(root, "dmxin");
|
dmxArr = aJson.getObjectItem(root, "dmxin");
|
||||||
if (dmxArr && (itemsCount = aJson.getArraySize(dmxArr))) {
|
if (dmxArr && (itemsCount = aJson.getArraySize(dmxArr))) {
|
||||||
DMXinSetup(itemsCount * 4);
|
DMXinSetup(itemsCount * 4);
|
||||||
debugSerial<<F("DMX in started. Channels:")<<itemsCount * 4;
|
debugSerial<<F("DMX in started. Channels:")<<itemsCount * 4<<endl;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef _dmxout
|
#ifdef _dmxout
|
||||||
@@ -812,7 +812,7 @@ void applyConfig() {
|
|||||||
int k;
|
int k;
|
||||||
pinMode(pin, OUTPUT);
|
pinMode(pin, OUTPUT);
|
||||||
digitalWrite(pin, k = ((cmd == CMD_ON) ? HIGH : LOW));
|
digitalWrite(pin, k = ((cmd == CMD_ON) ? HIGH : LOW));
|
||||||
debugSerial<<F("Pin:")<<pin<<F("=")<<k;
|
debugSerial<<F("Pin:")<<pin<<F("=")<<k<<F(",");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} //switch
|
} //switch
|
||||||
|
|||||||
Reference in New Issue
Block a user