Skip to content

Commit 36570eb

Browse files
committed
Merge branch 'feature/sevensegsup' of github.com:CooperUnion/selfdrive into feature/sevensegsup
2 parents 43c5e63 + 293f15f commit 36570eb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

components/sup/src/sup.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define LED_PIN 6
1313

14-
static void blink_led_10hz();
14+
static void authorize_led();
1515
static void init_led();
1616
static void sup_100Hz();
1717

@@ -64,24 +64,23 @@ static void init_led()
6464
gpio_set_direction(SEG_3, GPIO_MODE_OUTPUT);
6565
gpio_pad_select_gpio(SEG_4);
6666
gpio_set_direction(SEG_4, GPIO_MODE_OUTPUT);
67+
68+
69+
for (int i = 0; i < 6; i++) {
70+
gpio_set_level(zero[i], 1);
71+
}
6772
}
6873

6974
static void bts_authorization()
7075
{
7176
}
7277

7378
ember_rate_funcs_S module_rf = {
74-
.call_init = init_led,
75-
.call_10Hz = blink_led_10hz,
79+
.call_init = init_led,
80+
//.call_10Hz = blink_led_10hz,
7681
.call_100Hz = sup_100Hz,
7782
};
7883

79-
static void init_led()
80-
{
81-
gpio_pad_select_gpio(LED_PIN);
82-
gpio_set_direction(LED_PIN, GPIO_MODE_OUTPUT);
83-
}
84-
8584
static void sup_100Hz()
8685
{
8786
bool authorized;

0 commit comments

Comments
 (0)