X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=tinyboard.git;a=blobdiff_plain;f=projects%2Fstep-up%2Fcontrol.c;h=bdfe53d002c00aa89533faf35188479bd760f976;hp=99190cc45f2947e4b382e83cf1197b10b9613375;hb=e6421ff2a4cecb87d997afff76dddc3eb1ba936a;hpb=51ec86a430465eb671c7ae94e83557d89ddebb32 diff --git a/projects/step-up/control.c b/projects/step-up/control.c index 99190cc..bdfe53d 100644 --- a/projects/step-up/control.c +++ b/projects/step-up/control.c @@ -20,7 +20,7 @@ static pattern_t blink_pattern[] = { static pattern_t slow_pattern[] = { { 1, 0x1 }, - { 0, 0x1F }, + { 0, 0x18 }, PATTERN_END }; @@ -77,8 +77,7 @@ void short_press() void long_press() { - e.shutdown_in_progress = 0; - pattern_reload(); + power_down(); } pattern_t *pwmled_pattern_select() @@ -109,7 +108,7 @@ pattern_t *status_led_pattern_select() if (e.battery_low) return number_pattern(1, 1); - return number_pattern(light_mode+1, 0); + return number_pattern(battery_gauge(), 0); } #if 0