Skip to content

Commit

Permalink
fix: pwm boolean case now no longer breaks output pins
Browse files Browse the repository at this point in the history
  • Loading branch information
cadriel committed Jan 21, 2021
1 parent 4259e18 commit f8e23a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/socket/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export const getters: GetterTree<SocketState, RootState> = {
if (outputPins.includes(type)) {
output = {
...output,
pwm: (config && config.pwm) ? JSON.parse(config.pwm) : false,
pwm: (config && config.pwm) ? JSON.parse(config.pwm.toLowerCase()) : false,
scale: (config && config.scale) ? JSON.parse(config.scale) : 1,
controllable: (config && config.static_value) ? false : (controllable.includes(split[0]))
}
Expand Down

0 comments on commit f8e23a8

Please sign in to comment.