Skip to content

Commit d068a2b

Browse files
committed
Replaced const define with hardcoded bus size of 16
1 parent 7d54c82 commit d068a2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libraries/mbed/common/BusIn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ BusIn::operator int() {
7373
}
7474

7575
DigitalIn& BusIn::operator[] (int index) {
76-
MBED_ASSERT(index < 0 || index >= MBED_BUS_SIZE);
76+
MBED_ASSERT(index < 0 || index >= 16);
7777
MBED_ASSERT(_pin[index]);
7878
if (index >= 16 || _pin[index] == NULL) {
7979
return din_dummy;

libraries/mbed/common/BusInOut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ BusInOut& BusInOut::operator= (BusInOut& rhs) {
103103
}
104104

105105
DigitalInOut& BusInOut::operator[] (int index) {
106-
MBED_ASSERT(index < 0 || index >= MBED_BUS_SIZE);
106+
MBED_ASSERT(index < 0 || index >= 16);
107107
MBED_ASSERT(_pin[index]);
108108
if (index >= 16 || _pin[index] == NULL) {
109109
return dinout_dummy;

libraries/mbed/common/BusOut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ BusOut& BusOut::operator= (BusOut& rhs) {
7979
}
8080

8181
DigitalOut& BusOut::operator[] (int index) {
82-
MBED_ASSERT(index < 0 || index >= MBED_BUS_SIZE);
82+
MBED_ASSERT(index < 0 || index >= 16);
8383
MBED_ASSERT(_pin[index]);
8484
if (index >= 16 || _pin[index] == NULL) {
8585
return dout_dummy;

0 commit comments

Comments
 (0)