Merge pull request #101 from jwetzell/fix-mictx-gain

Fix MicTX gain when using decimal values
This commit is contained in:
Erwin Ried 2020-07-15 09:37:43 +02:00 committed by GitHub
commit c13e9ed299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,8 @@ private:
ToneGen tone_gen { }; ToneGen tone_gen { };
ToneGen beep_gen { }; ToneGen beep_gen { };
uint32_t divider { }, audio_gain { }; uint32_t divider { };
float audio_gain { };
uint64_t power_acc { 0 }; uint64_t power_acc { 0 };
uint32_t power_acc_count { 0 }; uint32_t power_acc_count { 0 };
bool play_beep { false }; bool play_beep { false };