Skip to content

Commit

Permalink
build simulator fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jun 1, 2020
1 parent f90541e commit eeaa5e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eez/modules/dcp405/ioexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,15 @@ bool IOExpander::isAdcReady() {
void IOExpander::changeBit(int io_bit, bool set) {
auto &slot = *g_slots[slotIndex];

#if defined(EEZ_PLATFORM_STM32)
if (io_bit == IO_BIT_OUT_OVP_ENABLE) {
if (set) {
write(REG_GPINTENA, REG_VALUE_GPINTENA);
} else {
write(REG_GPINTENA, 0);
}
}
#endif

if (slot.moduleRevision >= MODULE_REVISION_DCP405_R3B1) {
if (io_bit == IO_BIT_OUT_OVP_ENABLE) {
Expand Down

0 comments on commit eeaa5e4

Please sign in to comment.