6

Jesus fucking christ.
I posted two rants today, both about trying to get my SD card reader to work on my arduino due...

After spending my whole day debugging, rewriting my code multiple times, cutting off anything that wasn't strictly necessary, writing my code procedurally, I finally decided to go and see what the library I HAVE to use is doing under the hood.

APPARENTLY...

uint_fast8_t is NOT 8 bits wide on my due...

The bitshifts were "overflowing" (not really, just taking more space, which it had access to) meaning that my data was getting corrupt.

FUCK YOU FOR TAKING A DAY OFF MY LIFE

Comments
  • 1
    @Haxk20 pretty sure that's gotta be less frustrating than poking in the dark and guessing whether the 1's and 0's you're getting on your screen are semantically "correct"
Add Comment