Skip to content

Commit

Permalink
Fixed a number error of range.
Browse files Browse the repository at this point in the history
  • Loading branch information
RaHoni committed Apr 21, 2021
1 parent 2528aaa commit 371003b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class mqttController(val masterID: String, _key: Array[Byte], val name: String =
val messageJson = parse(messageString)
logger.debug("got parsed to {}",messageJson)
val pin = (messageJson \ "pin").extract[Int]
val value: Float = (messageJson \ "value").extract[String].toFloat / 1024
val value: Float = (messageJson \ "value").extract[String].toFloat / 1023
logger.debug("Setting pin {} to {}", pin, value)
pins(pin).status = value
}
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.4.2"
version in ThisBuild := "0.4.4-SNAPSHOT"

0 comments on commit 371003b

Please sign in to comment.