Architecture cleanup
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
#include <ws2812_drv.h>
|
||||
#include "stm32f1xx_hal.h"
|
||||
#include "tim.h"
|
||||
|
||||
extern htim2;
|
||||
|
||||
static void set_byte(uint32_t pos, uint8_t value);
|
||||
|
||||
@@ -74,7 +74,7 @@ static void set_byte(uint32_t pos, uint8_t value)
|
||||
|
||||
|
||||
void ws2812_wait(void){
|
||||
while(HAL_TIM_GetChannelState(&htim2, TIM_CHANNEL_1)){}
|
||||
while(HAL_TIM_GetChannelState(&htim2, (uint32_t) TIM_CHANNEL_1)){}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user