Fixes in lib for STM32L1xx