{"id":219,"date":"2011-10-19T12:10:58","date_gmt":"2011-10-19T16:10:58","guid":{"rendered":"http:\/\/fll-freak.com\/blog\/?p=219"},"modified":"2025-04-21T00:54:36","modified_gmt":"2025-04-21T04:54:36","slug":"furnace-monitor","status":"publish","type":"post","link":"https:\/\/fll-freak.com\/blog\/?p=219","title":{"rendered":"Furnace Monitor"},"content":{"rendered":"<p>I have been up against a bug in my furnace monitor Arduini code for two days. The first night I\u00a0looked for it I had had a rough day at work. My mind was spent. Last night (although it did take a while) I found the bug. It was a classic mix up between a == comparison and an = assignment operator. The statement I had wanted was<\/p>\n<pre>if (val == 0xffff) {<\/pre>\n<p>What I ended up with was always setting val to 0xffff and always taking the branch. How I wish that C would not have allowed assignments inside conditional clauses. Some people would hate having to write code that was &#8220;wordy&#8221;, but it would have saved the world much frustration.<\/p>\n<p>I need to find a good Lint program&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been up against a bug in my furnace monitor Arduini code for two days. The first night I\u00a0looked for it I had had a rough day at work. My mind was spent. Last night (although it did take &hellip; <a href=\"https:\/\/fll-freak.com\/blog\/?p=219\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7],"tags":[],"class_list":["post-219","post","type-post","status-publish","format-standard","hentry","category-furnace-monitor","category-projects"],"_links":{"self":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=219"}],"version-history":[{"count":4,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}