Skip to content

Commit fe27fb6

Browse files
author
mxmxmx
committed
[REFs] round
1 parent bf0b8da commit fe27fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

software/o_c_REV/APP_REFS.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public:
319319
for (uint8_t i = 0; i < kHistoryDepth; i++)
320320
average += history[i];
321321
// ... and derive target frequency at 0V
322-
auto_frequency_ = ((auto_frequency_ + average) / (float)(kHistoryDepth + 1)); // 0V
322+
auto_frequency_ = (uint32_t) (0.5f + ((auto_frequency_ + average) / (float)(kHistoryDepth + 1))); // 0V
323323
// reset step, and proceed:
324324
auto_reset_step();
325325
autotuner_step_++;

0 commit comments

Comments
 (0)