mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiunits] Use div instead of divide for kotlin compatibility (#7387)
This commit is contained in:
@@ -176,7 +176,7 @@ public class EpilogueGenerator {
|
||||
out.println(" config.loggingPeriod = Seconds.of(robot.getPeriod());");
|
||||
out.println(" }");
|
||||
out.println(" if (config.loggingPeriodOffset == null) {");
|
||||
out.println(" config.loggingPeriodOffset = config.loggingPeriod.divide(2);");
|
||||
out.println(" config.loggingPeriodOffset = config.loggingPeriod.div(2);");
|
||||
out.println(" }");
|
||||
out.println();
|
||||
out.println(" robot.addPeriodic(() -> {");
|
||||
|
||||
@@ -172,7 +172,7 @@ class EpilogueGeneratorTest {
|
||||
config.loggingPeriod = Seconds.of(robot.getPeriod());
|
||||
}
|
||||
if (config.loggingPeriodOffset == null) {
|
||||
config.loggingPeriodOffset = config.loggingPeriod.divide(2);
|
||||
config.loggingPeriodOffset = config.loggingPeriod.div(2);
|
||||
}
|
||||
|
||||
robot.addPeriodic(() -> {
|
||||
@@ -252,7 +252,7 @@ class EpilogueGeneratorTest {
|
||||
config.loggingPeriod = Seconds.of(robot.getPeriod());
|
||||
}
|
||||
if (config.loggingPeriodOffset == null) {
|
||||
config.loggingPeriodOffset = config.loggingPeriod.divide(2);
|
||||
config.loggingPeriodOffset = config.loggingPeriod.div(2);
|
||||
}
|
||||
|
||||
robot.addPeriodic(() -> {
|
||||
@@ -284,7 +284,7 @@ class EpilogueGeneratorTest {
|
||||
config.loggingPeriod = Seconds.of(robot.getPeriod());
|
||||
}
|
||||
if (config.loggingPeriodOffset == null) {
|
||||
config.loggingPeriodOffset = config.loggingPeriod.divide(2);
|
||||
config.loggingPeriodOffset = config.loggingPeriod.div(2);
|
||||
}
|
||||
|
||||
robot.addPeriodic(() -> {
|
||||
|
||||
Reference in New Issue
Block a user