acassis commented on code in PR #21814:
URL: https://github.com/apache/nuttx/pull/21814#discussion_r4556923539
##########
arch/arm/src/common/stm32/stm32_capture_m3m4_v1.c:
##########
@@ -1202,26 +1191,18 @@ static uint32_t stm32_cap_getcapture(struct
stm32_cap_dev_s *dev,
case STM32_CAP_CHANNEL_COUNTER:
offset = STM32_GTIM_CNT_OFFSET;
break;
-#ifdef HAVE_CH1IN
case 1:
Review Comment:
BTW, I think it is better to increase some bytes if the code become clear
and with less #ifdefs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]