Skip to content

Commit 867bf34

Browse files
author
mohamed hassanin
committed
edit: Initialize ADCsample flag with false
1 parent 05ed8fb commit 867bf34

File tree

1 file changed

+1
-1
lines changed
  • OpenLoopOn_m328P/OpenLoopOn_m328P

1 file changed

+1
-1
lines changed

OpenLoopOn_m328P/OpenLoopOn_m328P/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ unsigned char Motor_status;
4141

4242
// ADC Variables
4343
volatile int curADC, prevADC = 0;
44-
volatile unsigned char SampleADC;
44+
volatile unsigned char SampleADC = false;
4545

4646
// Function definition
4747
void PWM_update (unsigned char Next_Hall_Sequence);

0 commit comments

Comments
 (0)