ymodem: fix examples due to new API
Merge pull request #367 from grissiom/ymodem-fix

ymodem: fix examples due to new API