Skip to content

Commit

Permalink
Revert "simplify code"
Browse files Browse the repository at this point in the history
This reverts commit 715a744.
  • Loading branch information
Erimelowo committed Sep 19, 2023
1 parent 715a744 commit fdbb693
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
var imuTracker = connection.getTracker(trackerId)
if (imuTracker == null) {
var formattedHWID = connection.hardwareIdentifier.replace(":", "")
.subSequence(Math.max(formattedHWID.length - 5, 0), formattedHWID.length)
formattedHWID =
formattedHWID.subSequence(Math.max(formattedHWID.length - 5, 0), formattedHWID.length)
.toString()
if (trackerId != 0) {
formattedHWID += "_$trackerId"
Expand Down

0 comments on commit fdbb693

Please sign in to comment.