};
static pattern_t normal3_pattern[] = {
- { 2, 0x1 },
+ { 3, 0x1 },
{ 0, 0x1 },
- { 2, 0x1 },
+ { 3, 0x1 },
{ 0, 0x8 },
{ 1, 0x1 },
{ 0, 0x1 },
};
static pattern_t normal4_pattern[] = {
- { 2, 0x1 },
+ { 4, 0x1 },
{ 0, 0x1 },
- { 2, 0x1 },
+ { 4, 0x1 },
{ 0, 0x8 },
{ 1, 0x1 },
{ 0, 0x1 },
{
// TODO: battery critical
+#ifndef TESTING_FW
+ return normal3_pattern;
+#endif
+
if (towbar_mode)
return NULL;
{
// TODO: battery critical
+#ifndef TESTING_FW
+ return off_pattern;
+#endif
if (towbar_mode) {
switch (ambient_zone) {
case 0:
{
// TODO: battery critical
+#ifndef TESTING_FW
+ return on3_pattern;
+#endif
switch (ambient_zone) {
case 0: return dim_mode ? on2_pattern : on3_pattern;
case 1: return dim_mode ? slow1_pattern : normal2_pattern;
return buttons_setup_status0_pattern_select();
// FIXME: do something sane
- return number_pattern(1 + ambient_zone, 1);
+ return number_pattern(1 + ambient_zone, 0);
}
pattern_t *illumination_led_pattern_select()
* 1024 \
/ (1100000/(gain))))
-#define PWMLED_TESTING 1
-
static uint16_t adc_max[N_PWMLEDS] = {
-#ifdef PWMLED_TESTING
+#ifdef TESTING_FW
MA_GAIN_TO_ADC( 400, 20),
MA_GAIN_TO_ADC( 30, 20),
MA_GAIN_TO_ADC( 800, 1)
};
static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = {
-#ifdef PWMLED_TESTING
+#ifdef TESTING_FW
/* pwmled0 */
MA_GAIN_TO_ADC( 50, 20),
- MA_GAIN_TO_ADC( 150, 20),
- MA_GAIN_TO_ADC( 250, 20),
- MA_GAIN_TO_ADC( 350, 20),
+ MA_GAIN_TO_ADC( 100, 20),
+ MA_GAIN_TO_ADC( 200, 20),
+ MA_GAIN_TO_ADC( 300, 20),
/* pwmled1 */
MA_GAIN_TO_ADC( 5, 20),
MA_GAIN_TO_ADC( 10, 20),
MA_GAIN_TO_ADC( 15, 20),
MA_GAIN_TO_ADC( 20, 20),
/* pwmled2 */
+ MA_GAIN_TO_ADC( 50, 1),
MA_GAIN_TO_ADC( 100, 1),
- MA_GAIN_TO_ADC( 200, 1),
- MA_GAIN_TO_ADC( 300, 1),
- MA_GAIN_TO_ADC( 400, 1)
+ MA_GAIN_TO_ADC( 150, 1),
+ MA_GAIN_TO_ADC( 200, 1)
#else
/* pwmled0 */
MA_GAIN_TO_ADC( 100, 20),