We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf0b8da commit fe27fb6Copy full SHA for fe27fb6
software/o_c_REV/APP_REFS.ino
@@ -319,7 +319,7 @@ public:
319
for (uint8_t i = 0; i < kHistoryDepth; i++)
320
average += history[i];
321
// ... and derive target frequency at 0V
322
- auto_frequency_ = ((auto_frequency_ + average) / (float)(kHistoryDepth + 1)); // 0V
+ auto_frequency_ = (uint32_t) (0.5f + ((auto_frequency_ + average) / (float)(kHistoryDepth + 1))); // 0V
323
// reset step, and proceed:
324
auto_reset_step();
325
autotuner_step_++;
0 commit comments