Обновление
This commit is contained in:
parent
e556f8538d
commit
c720420517
|
|
@ -84,9 +84,9 @@ static void setActivePercent(tPwmFlagchip *env, uint8_t percent) {
|
||||||
|
|
||||||
// Ограничения
|
// Ограничения
|
||||||
if (percent >= 100)
|
if (percent >= 100)
|
||||||
percent = 95;
|
percent = 99;
|
||||||
if (percent == 0)
|
if (percent == 0)
|
||||||
percent = 5;
|
percent = 1;
|
||||||
|
|
||||||
// Для active LOW (bActiveHigh = false) нужна инверсия
|
// Для active LOW (bActiveHigh = false) нужна инверсия
|
||||||
// 10% → 90%, 20% → 80% и т.д.
|
// 10% → 90%, 20% → 80% и т.д.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue