fix H-file

This commit is contained in:
2025-08-17 18:01:01 +08:00
parent b60cfbee97
commit 443e9bf8f2
7 changed files with 169 additions and 44 deletions

View File

@@ -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
}
}