Browse Source

add:adc兼容id 10 11

Dozingfiretruck 3 years ago
parent
commit
b627d261f9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/port/luat_adc_air101.c

+ 2 - 0
app/port/luat_adc_air101.c

@@ -25,8 +25,10 @@ int luat_adc_open(int ch, void *args)
         wm_adc_config(ch);
         break;
 // #endif
+    case 10:
     case LUAT_ADC_CH_CPU:
         return 0; // 温度传感器
+    case 11:
     case LUAT_ADC_CH_VBAT:
         return 0; // VBAT电压
     default: