BusPirate / Bus_Pirate

Community driven firmware and hardware for Bus Pirate version 3 and 4
625 stars 130 forks source link

Use full addresses for printing constant messages #62

Closed andersm closed 7 years ago

andersm commented 7 years ago

On parts with more than 64KiB flash, function pointers are implemented using 16-bit "handles". Use __builtin_tbladdress() to pass the full address to the message printing functions.

Remove unnecessary index arithmetic from bp_message_write_buffer().

Fixes #61.

agatti commented 7 years ago

Thanks a lot!