nrf5: Generalize script setting LED(1) on to be applied only when there are leds present on the board.
This commit is contained in:
parent
e645b0b425
commit
c4304d69e0
@ -175,15 +175,10 @@ pin_init0();
|
||||
do_str("import pyb\r\n" \
|
||||
"pyb.LED(1).on()",
|
||||
MP_PARSE_FILE_INPUT);
|
||||
#elif (MICROPY_HW_LED_COUNT == 2)
|
||||
#elif (MICROPY_HW_LED_COUNT > 0)
|
||||
do_str("import pyb\r\n" \
|
||||
"pyb.LED(1).on()",
|
||||
MP_PARSE_FILE_INPUT);
|
||||
#else
|
||||
do_str("import pyb\r\n" \
|
||||
"pyb.LED(1).on()\r\n" \
|
||||
"pyb.LED(3).on()",
|
||||
MP_PARSE_FILE_INPUT);
|
||||
#endif
|
||||
|
||||
// Main script is finished, so now go into REPL mode.
|
||||
|
Loading…
Reference in New Issue
Block a user