BusPirate / Bus_Pirate

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

Fix printing zero on console #91

Closed Fullmetal5 closed 6 years ago

Fullmetal5 commented 6 years ago

Not sure if this is the best way to fix it but this worked for me. If zero is passed to the bp_writedec* functions to be printed then nothing will end up on screen. This can be see if you try to run the self test and no errors are reported. ex. "Found errors." A simple fix was to just check for zero and handle it explicitly.