diff options
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/fsm-adc.c | 2 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-misc.c | 4 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-states.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c index ce7a31c..60eb843 100644 --- a/spaghetti-monster/fsm-adc.c +++ b/spaghetti-monster/fsm-adc.c @@ -192,7 +192,7 @@ ISR(ADC_vect) { temp += 0x80; // Add 1/2 to get correct rounding on division below temp >>= 8; // Divide result to get Kelvin m = (temp << 6); // left align it - } + } else { m = (ADC0.RES << 6); } // voltage, force left-alignment #else diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c index c2c1afe..9a10a9c 100644 --- a/spaghetti-monster/fsm-misc.c +++ b/spaghetti-monster/fsm-misc.c @@ -138,8 +138,8 @@ void indicator_led(uint8_t lvl) { AUXLED2_PORT.OUTSET = (1 << AUXLED2_PIN); // set as high #endif break; - - #else + + #else // MCU is old tiny style, not newer mega style case 0: // indicator off DDRB &= 0xff ^ (1 << AUXLED_PIN); diff --git a/spaghetti-monster/fsm-states.c b/spaghetti-monster/fsm-states.c index 4d9ac08..e368277 100644 --- a/spaghetti-monster/fsm-states.c +++ b/spaghetti-monster/fsm-states.c @@ -16,7 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - + #ifndef FSM_STATES_C #define FSM_STATES_C |
