From dc9a9e5d960dedb5734f8d87156e1b5bf190bc64 Mon Sep 17 00:00:00 2001 From: Thad House Date: Sat, 24 Dec 2016 19:04:32 -0800 Subject: [PATCH] Fixes typo in SensorBase error message (#422) --- .../java/edu/wpi/first/wpilibj/SensorBase.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java index c2ede4ab99..0d92b750db 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java @@ -89,7 +89,7 @@ public abstract class SensorBase { protected static void checkSolenoidModule(final int moduleNumber) { if (!SolenoidJNI.checkSolenoidModule(moduleNumber)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested solenoid module is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested solenoid module is out of range. Minimum: 0, Maximum: ") .append(kPCMModules) .append(", Requested: ") .append(moduleNumber); @@ -106,7 +106,7 @@ public abstract class SensorBase { protected static void checkDigitalChannel(final int channel) { if (!DIOJNI.checkDIOChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested DIO channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested DIO channel is out of range. Minimum: 0, Maximum: ") .append(kDigitalChannels) .append(", Requested: ") .append(channel); @@ -123,7 +123,7 @@ public abstract class SensorBase { protected static void checkRelayChannel(final int channel) { if (!RelayJNI.checkRelayChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested relay channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested relay channel is out of range. Minimum: 0, Maximum: ") .append(kRelayChannels) .append(", Requested: ") .append(channel); @@ -140,7 +140,7 @@ public abstract class SensorBase { protected static void checkPWMChannel(final int channel) { if (!PWMJNI.checkPWMChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested PWM channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested PWM channel is out of range. Minimum: 0, Maximum: ") .append(kPwmChannels) .append(", Requested: ") .append(channel); @@ -157,7 +157,7 @@ public abstract class SensorBase { protected static void checkAnalogInputChannel(final int channel) { if (!AnalogJNI.checkAnalogInputChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested analog input channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested analog input channel is out of range. Minimum: 0, Maximum: ") .append(kAnalogInputChannels) .append(", Requested: ") .append(channel); @@ -174,7 +174,7 @@ public abstract class SensorBase { protected static void checkAnalogOutputChannel(final int channel) { if (!AnalogJNI.checkAnalogOutputChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested analog output channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested analog output channel is out of range. Minimum: 0, Maximum: ") .append(kAnalogOutputChannels) .append(", Requested: ") .append(channel); @@ -190,7 +190,7 @@ public abstract class SensorBase { protected static void checkSolenoidChannel(final int channel) { if (!SolenoidJNI.checkSolenoidChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested solenoid channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested solenoid channel is out of range. Minimum: 0, Maximum: ") .append(kSolenoidChannels) .append(", Requested: ") .append(channel); @@ -207,7 +207,7 @@ public abstract class SensorBase { protected static void checkPDPChannel(final int channel) { if (!PDPJNI.checkPDPChannel(channel)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested PDP channel is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested PDP channel is out of range. Minimum: 0, Maximum: ") .append(kPDPChannels) .append(", Requested: ") .append(channel); @@ -223,7 +223,7 @@ public abstract class SensorBase { protected static void checkPDPModule(final int module) { if (!PDPJNI.checkPDPModule(module)) { StringBuilder buf = new StringBuilder(); - buf.append("Requested PDP module is out of range. Minimumm: 0, Maximum: ") + buf.append("Requested PDP module is out of range. Minimum: 0, Maximum: ") .append(kPDPModules) .append(", Requested: ") .append(module);