Skip to content

Commit

Permalink
Update DOCS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 1, 2024
1 parent 79e0718 commit 759a494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions birdnet-pi/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def summary_log(current_gain, clipping, rms_amplitude, thd_percentage):
if SUMMARY_MODE:
current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
clipping_status = "Yes" if clipping else "No"
print(f"[{current_time}] Gain: {current_gain:.1f} dB | Clipping: {clipping_status} | "
print(f"[{current_time}] [SUMMARY] Gain: {current_gain:.1f} dB | Clipping: {clipping_status} | "
f"Noise: {rms_amplitude:.5f} | THD: {thd_percentage:.2f}%")


Expand Down Expand Up @@ -759,7 +759,7 @@ def main():

# Adjust gain based on noise trend if threshold count is reached
if TREND_COUNT >= TREND_COUNT_THRESHOLD:
if CURRENT_TREND == 1 and int(current_gain_db) >= MAX_GAIN_DB:
if CURRENT_TREND == 1 and int(current_gain_db) > MIN_GAIN_DB:
# Decrease gain by DECREASE_GAIN_STEP_DB dB
NEW_GAIN_DB = max(current_gain_db - DECREASE_GAIN_STEP_DB, MIN_GAIN_DB)
if set_gain_db(MICROPHONE_NAME, NEW_GAIN_DB):
Expand Down

0 comments on commit 759a494

Please sign in to comment.