Merge pull request #8844 from curzon01/development

Fix shutter target == 255 on close
This commit is contained in:
Theo Arends 2020-07-04 11:54:41 +02:00 committed by GitHub
commit 751e6c2b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ uint8_t ShutterRealToPercentPosition(int32_t realpos, uint32_t index)
break; break;
} }
} }
return realpercent; return (int16_t)realpercent < 0 ? 0 : realpercent;
} }
} }