1
2
3
4
5
6
7
8
9
10
11
12
13
    _buttonlight_on();
    thread = find_empty_thread_slot(); /* this func turns buttonlight off directly before returning */
    if (thread == NULL)
    {
        _backlight_set_brightness(6);
        THREAD_PANICF("zz", NULL);
        return 0;
    }
    _backlight_set_brightness(6);


/* backlight doesn't turn on, but buttonlight turns on!!! */