|
|
@ -162,6 +162,7 @@ int32_t OpticalModuleV2::start_t_optical_scan(int32_t scanDirection, int32_t las |
|
|
|
ZLOGI(TAG, "--------------start_t_optical_scan-----------"); |
|
|
|
int32_t intervalStep = 0; |
|
|
|
int32_t scanStartPos = 0; |
|
|
|
osDelay(50); |
|
|
|
|
|
|
|
if (scanDirection >= 0) { |
|
|
|
intervalStep = -m_reg.scan_step_interval; |
|
|
@ -219,6 +220,7 @@ int32_t OpticalModuleV2::start_f_optical_scan(int32_t scanDirection, int32_t las |
|
|
|
m_thread.stop(); |
|
|
|
m_thread.start([this, scanDirection, lasterGain, scanGain]() { |
|
|
|
ZLOGI(TAG, "--------------start_f_optical_scan-----------"); |
|
|
|
osDelay(50); |
|
|
|
|
|
|
|
int32_t intervalStep = 0; |
|
|
|
int32_t scanStartPos = 0; |
|
|
|