Livejournal
Log in
Post
Friends
My journal
jarkman
Lines
Jan 09, 2011 17:17
Repeat after me, one million times:
! is not bitwise NOT. ! is not bitwise NOT. ! is not bitwise NOT.
This has been a public service message from the Bit Twiddler's Association. Thank you for your time.
Leave a comment
Comments 4
e_spy
January 10 2011, 13:40:25 UTC
Oops. What's the context - and you, or someone else?
Reply
jarkman
January 10 2011, 13:43:37 UTC
Oh, mine. Writing an Arduino class to handle an MSF time receiver:
http://www.pvelectronics.co.uk/index.php?main_page=product_info&cPath=9&products_id=2
Spent a long time looking for a subtle bug which was actually a very, very stupid bug.
Still, it's working now, and a vast array of pointlessly elaborate clocks now beckons.
Reply
e_spy
January 10 2011, 14:12:50 UTC
Ah. Well, at least you hadn't hard-coded a flag for debug and wondered why your decoder struggled with correctly setting that flag.
Reply
jarkman
January 10 2011, 14:14:54 UTC
:-) Not this morning, anyway.
Reply
Leave a comment
Up
Comments 4
Reply
http://www.pvelectronics.co.uk/index.php?main_page=product_info&cPath=9&products_id=2
Spent a long time looking for a subtle bug which was actually a very, very stupid bug.
Still, it's working now, and a vast array of pointlessly elaborate clocks now beckons.
Reply
Reply
Reply
Leave a comment