Skip to content

Commit

Permalink
comment added in adc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 19, 2019
1 parent 6ddd7f5 commit 5483750
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eez/modules/psu/stm32/adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ void AnalogDigitalConverter::tick(uint32_t tick_usec) {
// int ready = !HAL_GPIO_ReadPin(SPI2_IRQ_GPIO_Port, SPI2_IRQ_Pin)
int ready;
if (g_slots[channel.slotIndex].moduleType == MODULE_TYPE_DCP405) {
// DCP405_IO_BIT_IN_ADC_DRDY
uint8_t gpioa = channel.ioexp.readGpio();
ready = !(gpioa & 0b00010000);
} else {
Expand Down

0 comments on commit 5483750

Please sign in to comment.