diff options
Diffstat (limited to 'ports')
-rw-r--r-- | ports/stm32/Makefile | 2 | ||||
-rw-r--r-- | ports/stm32/can.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index c3b7bbba9..a9dac03d2 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -133,7 +133,7 @@ LDFLAGS += --gc-sections # Debugging/Optimization ifeq ($(DEBUG), 1) CFLAGS += -g -DPENDSV_DEBUG -COPT = -O0 +COPT = -Og # Disable text compression in debug builds MICROPY_ROM_TEXT_COMPRESSION = 0 else diff --git a/ports/stm32/can.c b/ports/stm32/can.c index e5fc55e40..bcc698359 100644 --- a/ports/stm32/can.c +++ b/ports/stm32/can.c @@ -226,8 +226,8 @@ int can_receive(CAN_HandleTypeDef *can, int fifo, CanRxMsgTypeDef *msg, uint8_t HAL_StatusTypeDef CAN_Transmit(CAN_HandleTypeDef *hcan, uint32_t Timeout) { uint32_t transmitmailbox; uint32_t tickstart; - uint32_t rqcpflag; - uint32_t txokflag; + uint32_t rqcpflag = 0; + uint32_t txokflag = 0; // Check the parameters assert_param(IS_CAN_IDTYPE(hcan->pTxMsg->IDE)); |