Skip to content

Commit

Permalink
Update for the new tester
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Nov 14, 2023
1 parent 73b8034 commit dc3e731
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 119 deletions.
4 changes: 2 additions & 2 deletions Panel-Tester/src/main/kotlin/dev/slimevr/logger/LogManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ object LogManager {
if (f.name.startsWith("log_last")) f.delete()
}
}
val lastLogPattern = Path.of(mainLogDir.path, "log_last_%g.log").toString()
val fileHandler = FileHandler(lastLogPattern, 25 * 1000000, 2)
val lastLogPattern = Path.of(mainLogDir.path, "log_last.log").toString()
val fileHandler = FileHandler(lastLogPattern, 25 * 1000000, 1)
fileHandler.formatter = loc
global.addHandler(fileHandler)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ class ADCProvider(
fun getVCCVoltage() : Float = ADS1X15_1.getVoltage(1u)
fun getVBUSVoltage() : Float = ADS1X15_1.getVoltage(2u)
fun getBatVoltage() : Float = ADS1X15_1.getVoltage(3u)
fun getChrgVoltage() : Float = ADS1X15_2.getVoltage(0u)
fun getFullVoltage() : Float = ADS1X15_2.getVoltage(1u)
fun getChrgVoltage() : Float = 0f //ADS1X15_2.getVoltage(0u)
fun getFullVoltage() : Float = 0f //ADS1X15_2.getVoltage(1u)
}
Loading

0 comments on commit dc3e731

Please sign in to comment.