pio: implement flash-read correctly