ms-iot / virtual-shields-arduino

Windows Virtual Shields for Arduino library
MIT License
90 stars 44 forks source link

Near/Far Pointer Mismatch #16

Closed sidwarkd closed 9 years ago

sidwarkd commented 9 years ago

in VirtualShield::sendFlashStringOnSerial() (around line 788) the for loop checks for a far pointer and the next line does a pgm_read_byte_near.

JimGaleForce commented 9 years ago

by-design... this was the only way this worked. the pgm_read_byte_far didn't work at all here. bug in arduino code? not sure.

zfields commented 9 years ago

the signature for strlen_PF() is size_t strlen_PF (uint_farptr_t src), which is probably where the requirement for the uint_farptr_t is coming from.