Added a custom wait function to enable interrupts

Fork of m3pi by Chris Styles

m3pi.cpp/shortlog@9b128cebb3c2: not found in manifest