File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ BusIn::operator int()
97
97
DigitalIn &BusIn::operator [](int index)
98
98
{
99
99
// No lock needed since _pin is not modified outside the constructor
100
- MBED_ASSERT (index >= 0 && index <= 16 );
100
+ MBED_ASSERT (index >= 0 && index < 16 );
101
101
MBED_ASSERT (_pin[index]);
102
102
return *_pin[index];
103
103
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ BusInOut &BusInOut::operator= (BusInOut &rhs)
128
128
DigitalInOut &BusInOut::operator [](int index)
129
129
{
130
130
// No lock needed since _pin is not modified outside the constructor
131
- MBED_ASSERT (index >= 0 && index <= 16 );
131
+ MBED_ASSERT (index >= 0 && index < 16 );
132
132
MBED_ASSERT (_pin[index]);
133
133
return *_pin[index];
134
134
}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ BusOut &BusOut::operator= (BusOut &rhs)
95
95
DigitalOut &BusOut::operator [](int index)
96
96
{
97
97
// No lock needed since _pin is not modified outside the constructor
98
- MBED_ASSERT (index >= 0 && index <= 16 );
98
+ MBED_ASSERT (index >= 0 && index < 16 );
99
99
MBED_ASSERT (_pin[index]);
100
100
return *_pin[index];
101
101
}
You can’t perform that action at this time.
0 commit comments