Unsigned fix

This commit is contained in:
Blaz Kristan 2024-09-04 20:54:44 +02:00
parent d3c31c52a2
commit 092a5a1ca3

View File

@ -551,7 +551,7 @@ void BusPwm::show() {
if (_reversed) duty = maxBri - duty;
analogWrite(_pins[i], duty);
#else
unsigned deadTime = 0;
int deadTime = 0;
if (_type == TYPE_ANALOG_2CH && Bus::getCCTBlend() == 0) {
// add dead time between signals (when using dithering, two full 8bit pulses are required)
deadTime = (1+dithering) << bitShift;