pattern_t *pwmled0_pattern_select()
{
- // TODO: battery critical
+ if (battery_critical)
+ return on1_pattern;
if (towbar_mode)
return NULL;
pattern_t *pwmled1_pattern_select()
{
- // TODO: battery critical
-
#ifndef TESTING_FW
return NULL;
+#else
+ if (battery_critical)
+ return on1_pattern;
#endif
if (towbar_mode) {
pattern_t *pwmled2_pattern_select()
{
- // TODO: battery critical
-
#ifndef TESTING_FW
- return on3_pattern;
+ if (battery_critical)
+ return on1_pattern;
#endif
+
switch (ambient_zone) {
case 0: return dim_mode ? on2_pattern : on3_pattern;
case 1: return dim_mode ? slow1_pattern : normal2_pattern;
pattern_t *illumination_led_pattern_select()
{
- // todo: battery critical
+ if (battery_critical)
+ return NULL;
switch (ambient_zone) {
case 0: return dim_mode
pattern_t *buttons_setup_status1_pattern_select();
/* battery.c */
+extern volatile unsigned char battery_critical;
void battery_adc();
void init_battery();
unsigned char battery_gauge();