Fixed errorneous 'resource' lines in 'diff' when 'USE_PWM' is disabled.

This commit is contained in:
mikeller 2018-08-12 00:13:43 +12:00
parent 946cbd257f
commit 8d03431699
1 changed files with 3 additions and 1 deletions

View File

@ -3722,8 +3722,10 @@ const cliResourceValue_t resourceTable[] = {
#ifdef USE_SERVOS #ifdef USE_SERVOS
DEFA( OWNER_SERVO, PG_SERVO_CONFIG, servoConfig_t, dev.ioTags[0], MAX_SUPPORTED_SERVOS ), DEFA( OWNER_SERVO, PG_SERVO_CONFIG, servoConfig_t, dev.ioTags[0], MAX_SUPPORTED_SERVOS ),
#endif #endif
#if defined(USE_PWM) || defined(USE_PPM) #if defined(USE_PPM)
DEFS( OWNER_PPMINPUT, PG_PPM_CONFIG, ppmConfig_t, ioTag ), DEFS( OWNER_PPMINPUT, PG_PPM_CONFIG, ppmConfig_t, ioTag ),
#endif
#if defined(USE_PWM)
DEFA( OWNER_PWMINPUT, PG_PWM_CONFIG, pwmConfig_t, ioTags[0], PWM_INPUT_PORT_COUNT ), DEFA( OWNER_PWMINPUT, PG_PWM_CONFIG, pwmConfig_t, ioTags[0], PWM_INPUT_PORT_COUNT ),
#endif #endif
#ifdef USE_RANGEFINDER_HCSR04 #ifdef USE_RANGEFINDER_HCSR04