lpcmanager
Clone
Summary
Browse
Changes
Graph
Fixed python process kept in memory after frame being closed when WAMP connection was used. Was caused by cleanup not being invoked in OnCloseFrame().
2019-01-25, Edouard Tisserant
59fe1eea36a8
Fixed python process kept in memory after frame being closed when WAMP connection was used. Was caused by cleanup not being invoked in OnCloseFrame().
#ifdef ONBOARD_I2C
if(onboardbusfd!=-1)
close(onboardbusfd);
#endif /* ONBOARD_I2C */
#ifdef CAN0_EN_GPIO_0_21
gpio_set_pin_value(CAN0_EN_dev, 1);
gpio_close(CAN0_EN_dev);
#endif /* CAN0_EN_GPIO_0_21 */
#ifdef CAN1_EN_GPIO_0_17
gpio_set_pin_value(CAN1_EN_dev, 1);
gpio_close(CAN1_EN_dev);
#endif /* CAN1_EN_GPIO_0_17 */
gpio_set_pin_value(RUN_LED_dev, 1);
gpio_close(RUN_LED_dev);