Browse Source

main program file of the project

namrota ghosh 8 months ago
parent
commit
76ac5f351d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/target_main.c

+ 4 - 2
src/target_main.c

@@ -11,7 +11,7 @@
 #include "src/peripherals/adc/adc_interface.h"
 // mux peripheral
 #include "src/peripherals/mux/multiplexer.h"
-#define DELAY_CYCLE  (5000)
+#define DELAY_CYCLE  (1000000)
 //i2c:
 #include "ti/comm_modules/i2c/controller/i2c_comm_controller.h"
 //battery:
@@ -175,7 +175,9 @@ int main(void){
             for (uint8_t adc_channel = 0; adc_channel < ADC_CHANNEL_NUM; adc_channel++) {
                 updateADCReading_multichannel(slot_id, adc_channel);
             }
-            delay_cycles(DELAY_CYCLE);
+            
         }
+        
+        delay_cycles(DELAY_CYCLE);
     }
 }