Fixes typo in SensorBase error message (#422)

This commit is contained in:
Thad House
2016-12-24 19:04:32 -08:00
committed by Peter Johnson
parent 6844f05c3d
commit dc9a9e5d96

View File

@@ -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);