Skip to content

Commit

Permalink
minor fixes and cosmetics, BUG with bake mode!
Browse files Browse the repository at this point in the history
 .. there is still a bug when baking, this needs more than a
few lines of code.
  • Loading branch information
taliesin committed Mar 9, 2018
1 parent 17dd69b commit 83d1ace
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "eeprom.h"
#include "i2c.h"
#include "log.h"
#include "config.h"

#define EEADDR (0x50<<1)

Expand Down
4 changes: 1 addition & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ static MainMode_t Setup_Mode(MainMode_t mode) {
}

static MainMode_t Reflow_Mode(MainMode_t mode) {
uint32_t ticks = RTC_Read();
static bool prolog = true;

if (prolog) {
Expand All @@ -273,10 +272,9 @@ static MainMode_t Reflow_Mode(MainMode_t mode) {

fkey_t key = Keypad_Get(1, 1);


LCD_printf(110, 7, 0, "SET"); LCD_printf(110, 13, 0, "%03u", Reflow_GetSetpoint());
LCD_printf(110, 20, 0, "ACT"); LCD_printf(110, 26, 0, "%03u", Reflow_GetActualTemp());
LCD_printf(110, 33, 0, "RUN"); LCD_printf(110, 39, 0, "%03u", (unsigned int) ticks);
LCD_printf(110, 33, 0, "RUN"); LCD_printf(110, 39, 0, "%03u", (unsigned int) RTC_Read());

// abort reflow
if (key.priorized_key == KEY_S || abort) {
Expand Down
6 changes: 5 additions & 1 deletion src/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ SCLI_CMD_RET cmd_save(uint8_t argc, char *argv[])
p = strtok(buffer, ",");
for (int idx=0; idx < 48 && p; idx++) {
Reflow_SetSetpointAtIdx(idx, (uint16_t) atoi(p));
p = strtok (NULL, ",");
p = strtok(NULL, ",");
}
}

Expand Down Expand Up @@ -195,6 +195,10 @@ SCLI_CMD_RET cmd_reflow(uint8_t argc, char *argv[])
return 0;
}

/* BUG:
* bake mode does not work it selects always 50 degrees.
* From the keyboard this works, but the timer does not count down!!
*/
SCLI_CMD_RET cmd_bake(uint8_t argc, char *argv[])
{
if (argc < 2) {
Expand Down

0 comments on commit 83d1ace

Please sign in to comment.