mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 21:50:22 +03:00
main.c: Set green LED when USB is configured
This commit is contained in:
1 parent
34d4eb3f5f
commit
9dbf1c90ac
1 file changed
+3
-1
@@ -40,7 +40,7 @@ extern int main( void )
|
||||
|
||||
LED_Configure(LED_NUM_RED);
|
||||
LED_Configure(LED_NUM_GREEN);
|
||||
LED_Set(LED_NUM_GREEN);
|
||||
LED_Set(LED_NUM_RED);
|
||||
|
||||
/* Disable watchdog*/
|
||||
WDT_Disable( WDT ) ;
|
||||
@@ -82,6 +82,8 @@ extern int main( void )
|
||||
}
|
||||
else if (isUsbConnected == 0) {
|
||||
printf("USB is now configured\n\r");
|
||||
LED_Set(LED_NUM_GREEN);
|
||||
LED_Clear(LED_NUM_RED);
|
||||
|
||||
isUsbConnected = 1;
|
||||
// TC_Start(TC0, 0);
|
||||
|
||||
Reference in new issue
Block a user