generated from hulk/gd32e23x_template_cmake_vscode
fix H-file
This commit is contained in:
17
Src/main.c
17
Src/main.c
@@ -80,10 +80,27 @@ int main(void)
|
||||
ldc1612_init();
|
||||
ldc1612_config_single_channel(CHANNEL_0);
|
||||
|
||||
#ifdef EDDY_DRIVE_CURRENT_DETECTION
|
||||
ldc1612_drvie_current_detect(CHANNEL_0);
|
||||
#endif
|
||||
|
||||
while(1){
|
||||
#ifndef EDDY_DRIVE_CURRENT_DETECTION
|
||||
command_process();
|
||||
delay_ms(10);
|
||||
if (g_sensor_report_enabled)
|
||||
eddy_current_report();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#else
|
||||
ldc1612_drvie_current_detect(CHANNEL_0);
|
||||
delay_ms(1000);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user