Skip to content

Commit

Permalink
dcp405r2b5
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Aug 11, 2019
1 parent 2c9afa9 commit db1f34c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eez/apps/psu/stm32/ioexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ bool IOExpander::test() {

if (g_slots[channel.slotIndex].moduleType == MODULE_TYPE_DCP405) {
if (reg == REG_IODIRA) {
expectedValue = DCP405_REG_VALUE_IODIRA;
if (channel.boardRevision == CH_BOARD_REVISION_DCP405_R1B1) {
expectedValue = DCP405_REG_VALUE_IODIRA;
} else {
expectedValue = DCP405_R2B5_REG_VALUE_IODIRA;
}
} else if (reg == REG_IODIRB) {
expectedValue = DCP405_REG_VALUE_IODIRB;
}
Expand Down

0 comments on commit db1f34c

Please sign in to comment.