#include "AtmoDmxSerialConnection.h"
#include "AtmoMultiConnection.h"
#include "MoMoConnection.h"
+#include "FnordlichtConnection.h"
#include "AtmoExternalCaptureInput.h"
#include <math.h>
# include "AtmoGdiDisplayCaptureInput.h"
#endif
-
CAtmoTools::CAtmoTools(void)
{
}
{
pDynData->LockCriticalSection();
-
CAtmoConnection *atmoConnection = pDynData->getAtmoConnection();
CAtmoConfig *atmoConfig = pDynData->getAtmoConfig();
if((atmoConnection != NULL) && (atmoConfig!=NULL) && atmoConfig->isSetShutdownColor()) {
return ATMO_TRUE;
}
+ case actFnordlicht: {
+ CFnordlichtConnection *tempConnection = new CFnordlichtConnection( atmoConfig );
+ if(tempConnection->OpenConnection() == ATMO_FALSE) {
+ pDynData->setAtmoConnection(tempConnection);
+ pDynData->UnLockCriticalSection();
+ return ATMO_FALSE;
+ }
+ pDynData->setAtmoConnection(tempConnection);
+ pDynData->ReloadZoneDefinitionBitmaps();
+
+ tempConnection->CreateDefaultMapping( atmoConfig->getChannelAssignment(0) );
+
+ CAtmoTools::SetChannelAssignment(pDynData, atmoConfig->getCurrentChannelAssignment() );
+
+ pDynData->UnLockCriticalSection();
+ return ATMO_TRUE;
+ }
+
default: {
pDynData->UnLockCriticalSection();
return ATMO_FALSE;