mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-28 04:46:31 -08:00
More provisioning errors (#1404)
Co-authored-by: Butterscotch! <[email protected]>
This commit is contained in:
1 parent
cd6ed7296b
commit
8498270df6
14 files changed
+277
-171
No files matched your search
@@ -204,9 +204,9 @@ class DesktopSerialHandler :
|
||||
}
|
||||
}
|
||||
|
||||
fun addLog(str: String) {
|
||||
fun addLog(str: String, server: Boolean = true) {
|
||||
LogManager.info("[Serial] $str")
|
||||
listeners.forEach { it.onSerialLog(str) }
|
||||
listeners.forEach { it.onSerialLog(str, server) }
|
||||
}
|
||||
|
||||
override fun getListeningEvents(): Int = (
|
||||
@@ -219,7 +219,7 @@ class DesktopSerialHandler :
|
||||
SerialPort.LISTENING_EVENT_DATA_RECEIVED -> {
|
||||
val newData = event.receivedData
|
||||
val s = StandardCharsets.UTF_8.decode(ByteBuffer.wrap(newData)).toString()
|
||||
addLog(s)
|
||||
addLog(s, false)
|
||||
}
|
||||
|
||||
SerialPort.LISTENING_EVENT_PORT_DISCONNECTED -> {
|
||||
|
||||
Reference in new issue
Block a user