remove while1 from task

This commit is contained in:
sdes1
2026-01-13 18:47:41 +01:00
parent e242231814
commit 47f75e5b40

View File

@@ -33,7 +33,6 @@ extern int16_t pidValue;
void timer_Task(void *pdata) { void timer_Task(void *pdata) {
timer_Init(); timer_Init();
while(1){
if(pidValue){ if(pidValue){
uint16_t interval = 1.337*(64000/abs(pidValue)); uint16_t interval = 1.337*(64000/abs(pidValue));
uint8_t direction = pidValue<0; uint8_t direction = pidValue<0;
@@ -52,7 +51,6 @@ void timer_Task(void *pdata) {
{ {
timer_Stop(0); timer_Stop(0);
} }
}
} }
/* * * intializes and starts two timers with respective puls generation on gpio pins * * */ /* * * intializes and starts two timers with respective puls generation on gpio pins * * */