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 @@ -73,7 +73,7 @@ BusIn::operator int() {
73
73
}
74
74
75
75
DigitalIn& BusIn::operator [] (int index) {
76
- MBED_ASSERT (index < 0 || index >= MBED_BUS_SIZE );
76
+ MBED_ASSERT (index < 0 || index >= 16 );
77
77
MBED_ASSERT (_pin[index]);
78
78
if (index >= 16 || _pin[index] == NULL ) {
79
79
return din_dummy;
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ BusInOut& BusInOut::operator= (BusInOut& rhs) {
103
103
}
104
104
105
105
DigitalInOut& BusInOut::operator [] (int index) {
106
- MBED_ASSERT (index < 0 || index >= MBED_BUS_SIZE );
106
+ MBED_ASSERT (index < 0 || index >= 16 );
107
107
MBED_ASSERT (_pin[index]);
108
108
if (index >= 16 || _pin[index] == NULL ) {
109
109
return dinout_dummy;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ BusOut& BusOut::operator= (BusOut& rhs) {
79
79
}
80
80
81
81
DigitalOut& BusOut::operator [] (int index) {
82
- MBED_ASSERT (index < 0 || index >= MBED_BUS_SIZE );
82
+ MBED_ASSERT (index < 0 || index >= 16 );
83
83
MBED_ASSERT (_pin[index]);
84
84
if (index >= 16 || _pin[index] == NULL ) {
85
85
return dout_dummy;
You can’t perform that action at this time.
0 commit comments