From b6be16543ba31978f63fb73340b9fc66bef679ef Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 6 Mar 2024 00:34:17 +0800 Subject: [PATCH] update --- xsync.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xsync.cpp b/xsync.cpp index f884ac0..8fcbe2c 100644 --- a/xsync.cpp +++ b/xsync.cpp @@ -634,17 +634,17 @@ xs_error_code_t Xsync::RecordSigGenerator_getExternalTTLTriggerPolarity(uint32_t return _reg_read(reg::record_sig_gen_ttlin_trigger_level, polarity); } xs_error_code_t Xsync::RecordSigGenerator_setRecordExposureTime(uint32_t us) { // - return reg_write(reg::record_sig_gen_exposure_time, 10 * us); + return reg_write(reg::record_sig_gen_exposure_time, us); } xs_error_code_t Xsync::RecordSigGenerator_getRecordExposureTime(uint32_t &us) { auto ret = reg_read(reg::record_sig_gen_exposure_time, us); - us = us / 10; + // us = us / 10;1 return ret; } -xs_error_code_t Xsync::RecordSigGenerator_setRecordExposureOffsetTime(uint32_t us) { return reg_write(reg::record_sig_gen_exposure_offset_time, 10 * us); } +xs_error_code_t Xsync::RecordSigGenerator_setRecordExposureOffsetTime(uint32_t us) { return reg_write(reg::record_sig_gen_exposure_offset_time, us); } xs_error_code_t Xsync::RecordSigGenerator_getRecordExposureOffsetTime(uint32_t &us) { auto ret = reg_read(reg::record_sig_gen_exposure_offset_time, us); - us = us / 10; + // us = us / 10; return ret; } xs_error_code_t Xsync::RecordSigGenerator_setTimecodeCtrlFlag(uint32_t autoStart, uint32_t autoStop) { //