1
0
Fork 0
forked from len0rd/rockbox

Bug fix: Unit for the 'Peak Release' setting was not displayed, and calling that setting caused a NULL pointer access

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5435 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-11-19 01:13:33 +00:00
parent bb4872ecce
commit 359ef77e32

View file

@ -262,9 +262,10 @@ static bool peak_meter_release(void) {
fits into a 7 bit number. The 8th bit is used for storing
something else in the rtc ram.
Also, the max value is 0x7e, since the RTC value 0xff is reserved */
retval = set_int( str(LANG_PM_RELEASE), STR(LANG_PM_UNITS_PER_READ),
&global_settings.peak_meter_release,
NULL, 1, 1, 0x7e);
retval = set_int( str(LANG_PM_RELEASE), str(LANG_PM_UNITS_PER_READ),
LANG_PM_UNITS_PER_READ,
&global_settings.peak_meter_release,
NULL, 1, 1, 0x7e);
peak_meter_init_times(global_settings.peak_meter_release,
global_settings.peak_meter_hold,