File tree Expand file tree Collapse file tree 3 files changed +14
-42
lines changed Expand file tree Collapse file tree 3 files changed +14
-42
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ bool I2cController::Handle_I2cBusScan(pb_istream_t *stream) {
557
557
// TODO: Print out what was scanned? or do this at the end
558
558
}
559
559
560
- // Case 2: Scan the alternative I2C bus
560
+ // Case 2: Optionally scan the alternative I2C bus
561
561
if (_i2c_model->GetI2cBusScanMsg ()->scan_alt_bus ) {
562
562
// Is the alt bus initialized?
563
563
if (_i2c_bus_alt == nullptr ) {
@@ -587,13 +587,14 @@ bool I2cController::Handle_I2cBusScan(pb_istream_t *stream) {
587
587
// TODO: Print out what was scanned? or do this at the end
588
588
}
589
589
590
- // Case 3: Do we have a MUX on the default bus?
590
+ // Case 3: Optionally scan MUXes attached to I2C buses
591
591
if (_i2c_model->GetI2cBusScanMsg ()->i2c_mux_descriptors_count > 0 ) {
592
592
// Iterate through the MUX descriptors, scanning each MUX
593
+ for (int i = 0 ; i < _i2c_model->GetI2cBusScanMsg ()->i2c_mux_descriptors_count ; i++) {
594
+ // []
595
+ }
593
596
}
594
597
595
- // TODO Scan I2C Port 1 for Muxes
596
- // TODO Scan I2C Port 2 for Muxes
597
598
598
599
// TODO: Take scan_success into account here
599
600
return true ;
Original file line number Diff line number Diff line change 9
9
PB_BIND (wippersnapper_i2c_I2cDeviceDescriptor , wippersnapper_i2c_I2cDeviceDescriptor , AUTO )
10
10
11
11
12
- PB_BIND (wippersnapper_i2c_I2cMuxDescriptor , wippersnapper_i2c_I2cMuxDescriptor , AUTO )
13
-
14
-
15
12
PB_BIND (wippersnapper_i2c_I2cBusDescriptor , wippersnapper_i2c_I2cBusDescriptor , AUTO )
16
13
17
14
You can’t perform that action at this time.
0 commit comments