Fix adcdbug when one or more channels set to "none" (#477)
* gitignore atollic truestudio * Fix adcdebug when >= 1 ADC channel is set to none
This commit is contained in:
parent
b39e245a37
commit
d13b25eaa2
|
@ -527,6 +527,9 @@ static void printFullAdcReport(Logging *logger) {
|
|||
appendMsgPrefix(logger);
|
||||
|
||||
adc_channel_e hwIndex = slowAdc.getAdcHardwareIndexByInternalIndex(index);
|
||||
|
||||
if(hwIndex != EFI_ADC_NONE && hwIndex != EFI_ADC_ERROR)
|
||||
{
|
||||
ioportid_t port = getAdcChannelPort("print", hwIndex);
|
||||
int pin = getAdcChannelPin(hwIndex);
|
||||
|
||||
|
@ -540,6 +543,7 @@ static void printFullAdcReport(Logging *logger) {
|
|||
scheduleLogging(logger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void setAdcDebugReporting(int value) {
|
||||
adcDebugReporting = value;
|
||||
|
|
Loading…
Reference in New Issue