Обновление

This commit is contained in:
cfif 2026-04-29 13:59:07 +03:00
parent e556f8538d
commit c720420517
1 changed files with 2 additions and 2 deletions

View File

@ -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% и т.д.