led menu enlarge

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@726 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: c669bb863f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-08-19 (Thu, 19 Aug 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2010-08-19 12:10:01 +00:00
parent 67ab44d13b
commit 841da238c9
8 changed files with 60 additions and 9 deletions

View File

@@ -3738,9 +3738,26 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
if(timer_minutes)
fp_timer = (timer_minutes - mtime)/60;
printf("now: %ld, timer %ld, FP timer %ld\n", mtime/60, timer_minutes/60, fp_timer);fflush(stdout);
int leds = 0x40;
switch(g_settings.led_deep_mode){
case 0:
leds = 0x0;//off leds
break;
case 1:
leds = 0x60;//on led1 & 2
break;
case 2:
leds = 0x20;//led1 on , 2 off
break;
case 3:
leds = 0x40;//led2 off, 2 on
break;
default:
break;
}
standby.brightness = g_settings.lcd_setting[SNeutrinoSettings::LCD_DEEPSTANDBY_BRIGHTNESS];
standby.flags = g_settings.led_deep_mode ? 0x40:0;
standby.flags = leds;
standby.current_hour = tmtime->tm_hour;
standby.current_minute = tmtime->tm_min;
standby.timer_minutes_hi = fp_timer >> 8;;