Fix: RPi memory corruption

- Per #46 the read_payload() function was over-reading data into the
user provided buffer