Credit to hathach for finding and fixing this: https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/178 Fixes #178