mirror of https://github.com/arendst/Tasmota.git
Merge pull request #8844 from curzon01/development
Fix shutter target == 255 on close
This commit is contained in:
commit
751e6c2b7c
|
@ -161,7 +161,7 @@ uint8_t ShutterRealToPercentPosition(int32_t realpos, uint32_t index)
|
|||
break;
|
||||
}
|
||||
}
|
||||
return realpercent;
|
||||
return (int16_t)realpercent < 0 ? 0 : realpercent;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue