Skip to content

Commit

Permalink
Fix building with LTO=1
Browse files Browse the repository at this point in the history
  • Loading branch information
opsound committed Mar 19, 2017
1 parent ba4fc1d commit f0444f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/drivers/src/ws2812_cf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static int current_led = 0;
static int total_led = 0;
static uint8_t (*color_led)[3] = NULL;

void ws2812Send(uint8_t (*color)[3], int len)
void ws2812Send(uint8_t (*color)[3], uint16_t len)
{
int i;
if(len<1) return;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FreeRTOS/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,7 @@ BaseType_t xSwitchRequired = pdFALSE;
#endif /* configUSE_APPLICATION_TASK_TAG */
/*-----------------------------------------------------------*/

void vTaskSwitchContext( void )
void __attribute__((used)) vTaskSwitchContext( void )
{
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
{
Expand Down

0 comments on commit f0444f1

Please sign in to comment.