piezo power on 이전에 maa busy flag 먼저 세트
- piezo power on delay 10ms 존재 - Piezo 측정 중에는 배터리/온도 저전압 체크가 동작하지 않도록 하기 위함
This commit is contained in:
@@ -283,11 +283,6 @@ int Cmd_maa(const ParsedCmd *cmd)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!dr_piezo_is_power_on())
|
||||
{
|
||||
dr_piezo_power_on();
|
||||
}
|
||||
|
||||
err = maa_async_start(
|
||||
m_config.piezo_freq_option,
|
||||
m_config.piezo_delay_us,
|
||||
@@ -340,11 +335,6 @@ int Cmd_mbb(const ParsedCmd *cmd)
|
||||
|
||||
maa_async_set_pre_capture_all(true);
|
||||
|
||||
if (!dr_piezo_is_power_on())
|
||||
{
|
||||
dr_piezo_power_on();
|
||||
}
|
||||
|
||||
err = maa_async_start(
|
||||
m_config.piezo_freq_option,
|
||||
m_config.piezo_delay_us,
|
||||
@@ -396,11 +386,6 @@ int Cmd_mtb(const ParsedCmd *cmd)
|
||||
|
||||
maa_async_set_pre_capture_all(true);
|
||||
|
||||
if (!dr_piezo_is_power_on())
|
||||
{
|
||||
dr_piezo_power_on();
|
||||
}
|
||||
|
||||
err = maa_async_start(
|
||||
m_config.piezo_freq_option,
|
||||
m_config.piezo_delay_us,
|
||||
|
||||
Reference in New Issue
Block a user