Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib_mic_array_board_support/api/mic_array_board_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void mabs_button_and_led_server(server interface mabs_led_button_if lb[n_lb],
#ifndef MIC_BOARD_LED_STCP
mabs_led_ports_t &leds,
#else
client interface ma_bga167_led_if leds,
client interface ma_bga167_led_if? leds,
#endif
in port p_buttons);

Expand Down
6 changes: 4 additions & 2 deletions lib_mic_array_board_support/src/board_support.xc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void mabs_button_and_led_server(server interface mabs_led_button_if lb[n_lb],
#ifndef MIC_BOARD_LED_STCP
mabs_led_ports_t &leds,
#else
client interface ma_bga167_led_if leds,
client interface ma_bga167_led_if? leds,
#endif
in port p_buttons){

Expand Down Expand Up @@ -97,7 +97,9 @@ void mabs_button_and_led_server(server interface mabs_led_button_if lb[n_lb],

for(unsigned i=0; i<13; i++)
d=(d>>1)+(0x1000*(led_brightness[i]<=elapsed));
leds.set_leds(d);

if(!isnull(leds))
leds.set_leds(d);
#else
#if defined(PORT_LED0_TO_7)
for(unsigned i=0;i<8;i++)
Expand Down