Clean-up warnings

This commit is contained in:
Edwin Jakobs
2024-03-16 09:11:37 +01:00
parent c01d49861b
commit 8f2d382093
15 changed files with 57 additions and 26 deletions

View File

@@ -56,7 +56,7 @@ class OSC (
infix fun String.bind(prop: KMutableProperty0<Double>) {
val channel = this
listen(channel) { address, it ->
listen(channel) { _, it ->
when (val message = it.first()) {
is Double -> prop.set(message)
is Float -> prop.set(message.toDouble())
@@ -78,6 +78,6 @@ class OSC (
receiver.startListening()
if (receiver.isListening) logger.info("OSC is listening on port: $portIn")
if (receiver.isListening) logger.info { "OSC is listening on port: $portIn" }
}
}