예제 #1
0
파일: lighttimer.c 프로젝트: kool-lites/fpp
/*
 * Handle a timer event
 */
void HandleLightTimerEvent(void)
{
	if ((E131status != E131_STATUS_IDLE) ||
		(RunOnce))
	{
		if (RunOnce)
			RunOnce = 0;
		SetLightTimer(usTimerValue);
		E131_Send();
	}
}
예제 #2
0
파일: E131.c 프로젝트: pmscientist/fpp
void E131_CloseSequenceFile()
{ 
  E131_SetTimer(0);
  // Close the file
  if(seqFile !=NULL)
  {
    fclose(seqFile);
    seqFile=NULL;
  }
  E131status = E131_STATUS_IDLE;
  //Send blanking data
  sendBlankingData = 1;
  E131_Send();
  sendBlankingData = 0;	
}