suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

The scale constant of DuplexAudio is incorrectly calculated. #64

Closed suikan4github closed 4 years ago

suikan4github commented 4 years ago

Describe the bug The scale variable is incorrectly calculated. It is based on the INT32_MAX. But that will cover only 2^n -1.

Expected behavior const float scale = -1.0 * INT32_MIN;

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

suikan4github commented 4 years ago

Merged to develop. Ready to release.