Skip to content

Commit 7794226

Browse files
tr6260 pwm duty 0
1 parent af7bf39 commit 7794226

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hal/tr6260/hal_pins_tr6260.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ void HAL_PIN_PWM_Update(int index, float value)
348348
return;
349349
int ch = PIN_GetPWMIndexForPinIndex(index);
350350
if(ch < 0) return;
351-
if(value < 0.1)
352-
value = 0.1;
353-
if(value >= 100)
354-
value = 99.9;
351+
//if(value < 0.1)
352+
// value = 0.1;
353+
//if(value >= 100)
354+
// value = 99.9;
355355
pwm_config(ch, g_pins[index].freq, (uint32_t)(value * 10));
356356
pwm_start(ch);
357357
}

0 commit comments

Comments
 (0)