matsstaff / stc1000p

Programmable thermostat firmware and arduino based uploader for the STC-1000 thermostat
GNU General Public License v3.0
261 stars 47 forks source link

use bitwise operators to distinguish different decimal/degrees modes #80

Closed seanmcveigh closed 8 years ago

seanmcveigh commented 8 years ago

4 instructions.. could pass other flags into this function in the future.

seanmcveigh commented 8 years ago

could further clean up the magic values by #defining some bits, eg. LEDFORMAT_DECIMAL, LEDFORMAT_DEGREES, etc. I didn't want to rename "decimal" to "format" though, since I guess you were playing around in there.

seanmcveigh commented 8 years ago

screw it, let me plop that rename on top of this