mirror of https://github.com/ARMmbed/mbed-os.git
commit
5549c52da2
|
@ -97,7 +97,7 @@ BusIn::operator int()
|
|||
DigitalIn &BusIn::operator[](int index)
|
||||
{
|
||||
// No lock needed since _pin is not modified outside the constructor
|
||||
MBED_ASSERT(index >= 0 && index <= 16);
|
||||
MBED_ASSERT(index >= 0 && index < 16);
|
||||
MBED_ASSERT(_pin[index]);
|
||||
return *_pin[index];
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ BusInOut &BusInOut::operator= (BusInOut &rhs)
|
|||
DigitalInOut &BusInOut::operator[](int index)
|
||||
{
|
||||
// No lock needed since _pin is not modified outside the constructor
|
||||
MBED_ASSERT(index >= 0 && index <= 16);
|
||||
MBED_ASSERT(index >= 0 && index < 16);
|
||||
MBED_ASSERT(_pin[index]);
|
||||
return *_pin[index];
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ BusOut &BusOut::operator= (BusOut &rhs)
|
|||
DigitalOut &BusOut::operator[](int index)
|
||||
{
|
||||
// No lock needed since _pin is not modified outside the constructor
|
||||
MBED_ASSERT(index >= 0 && index <= 16);
|
||||
MBED_ASSERT(index >= 0 && index < 16);
|
||||
MBED_ASSERT(_pin[index]);
|
||||
return *_pin[index];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue