Update src/devices/colordistancesensor.ts

Co-Authored-By: Michał Szafrański <szafranski@gmail.com>
This commit is contained in:
Nathan Kellenicki 2020-03-25 09:54:27 -07:00 committed by GitHub
parent 0ec0692aad
commit 232ef6835e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ export class ColorDistanceSensor extends Device {
private _pfPowerToPWM (power: number) {
return (power < 0 ? 16 + power : power);
return power & 15;
}