chore(radio): Reduce size of the data structures in FLASH storage (#3979)
* Reduce size of the YamlNode structure in FLASH storage. Fix compiler warning. * Further reduction of FLASH used by YamlNode structures. * Reduce size of sensor definition arrays and audio tone volumes array.
This commit is contained in:
+1
-1
@@ -637,7 +637,7 @@ int WavContext::mixBuffer(AudioBuffer *buffer, int volume, unsigned int fade)
|
||||
}
|
||||
#endif
|
||||
|
||||
const unsigned int toneVolumes[] = { 10, 8, 6, 4, 2 };
|
||||
const uint8_t toneVolumes[] = { 10, 8, 6, 4, 2 };
|
||||
inline float evalVolumeRatio(int freq, int volume)
|
||||
{
|
||||
float result = toneVolumes[2+volume];
|
||||
|
||||
Reference in New Issue
Block a user