Skip to content

Commit

Permalink
Fix wrong parameter for assign_mem function
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jun 23, 2023
1 parent 8da30eb commit 27feddc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lwesp/src/system/lwesp_ll_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ prv_configure_uart(uint32_t baudrate) {
LL_DMA_Init(LWESP_USART_DMA, LWESP_USART_DMA_RX_STREAM, &dma_init);
#else
LL_DMA_Init(LWESP_USART_DMA, LWESP_USART_DMA_RX_CH, &dma_init);
#endif /* defined(LWESP_USART_DMA_RX_STREAM) */
#endif /* defined(LWESP_USART_DMA_RX_STREAM) */

/* Enable DMA interrupts */
#if defined(LWESP_USART_DMA_RX_STREAM)
Expand Down Expand Up @@ -322,15 +322,15 @@ lwespr_t
lwesp_ll_init(lwesp_ll_t* ll) {
#if !LWESP_CFG_MEM_CUSTOM
static uint8_t memory[LWESP_MEM_SIZE];
const lwesp_mem_region_t mem_regions[] = {{memory, sizeof(memory)}, {NULL, 0}};
const lwesp_mem_region_t mem_regions[] = {{memory, sizeof(memory)}};

if (!initialized) {
lwesp_mem_assignmemory(mem_regions, LWESP_ARRAYSIZE(mem_regions)); /* Assign memory for allocations */
}
#endif /* !LWESP_CFG_MEM_CUSTOM */
#endif /* !LWESP_CFG_MEM_CUSTOM */

if (!initialized) {
ll->send_fn = prv_send_data; /* Set callback function to send data */
ll->send_fn = prv_send_data; /* Set callback function to send data */
#if defined(LWESP_RESET_PIN)
ll->reset_fn = prv_reset_device; /* Set callback for hardware reset */
#endif /* defined(LWESP_RESET_PIN) */
Expand Down

0 comments on commit 27feddc

Please sign in to comment.