Added the timing delay to the code that calls the Load handler functions.

This commit is contained in:
jakeg00dwin 2024-09-14 13:06:19 -07:00
parent c73ce58b0f
commit fb49abc27b
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@
#include "RegEdit.h"
#include "zero_cross_detection.h"
#include "ADC.h"
#include "TriacOut.h"
#include "EnOut.h"
#include "load.h"
#include "Enable.h"
#include <avr/cpufunc.h> /* Required header file */
@ -52,6 +52,7 @@ int main(int argc, char **argv)
while(true){
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
_delay_us(Tau);
Load_HandleLoadPortA(ADC_LOAD1, EN1);
Load_HandleLoadPortB(ADC_LOAD2, EN2);
Load_HandleLoadPortB(ADC_LOAD3, EN3);