Skip to content

Commit 83d1ace

Browse files
committed
minor fixes and cosmetics, BUG with bake mode!
.. there is still a bug when baking, this needs more than a few lines of code.
1 parent 17dd69b commit 83d1ace

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/eeprom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "eeprom.h"
2626
#include "i2c.h"
2727
#include "log.h"
28+
#include "config.h"
2829

2930
#define EEADDR (0x50<<1)
3031

src/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ static MainMode_t Setup_Mode(MainMode_t mode) {
257257
}
258258

259259
static MainMode_t Reflow_Mode(MainMode_t mode) {
260-
uint32_t ticks = RTC_Read();
261260
static bool prolog = true;
262261

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

274273
fkey_t key = Keypad_Get(1, 1);
275274

276-
277275
LCD_printf(110, 7, 0, "SET"); LCD_printf(110, 13, 0, "%03u", Reflow_GetSetpoint());
278276
LCD_printf(110, 20, 0, "ACT"); LCD_printf(110, 26, 0, "%03u", Reflow_GetActualTemp());
279-
LCD_printf(110, 33, 0, "RUN"); LCD_printf(110, 39, 0, "%03u", (unsigned int) ticks);
277+
LCD_printf(110, 33, 0, "RUN"); LCD_printf(110, 39, 0, "%03u", (unsigned int) RTC_Read());
280278

281279
// abort reflow
282280
if (key.priorized_key == KEY_S || abort) {

src/shell.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ SCLI_CMD_RET cmd_save(uint8_t argc, char *argv[])
131131
p = strtok(buffer, ",");
132132
for (int idx=0; idx < 48 && p; idx++) {
133133
Reflow_SetSetpointAtIdx(idx, (uint16_t) atoi(p));
134-
p = strtok (NULL, ",");
134+
p = strtok(NULL, ",");
135135
}
136136
}
137137

@@ -195,6 +195,10 @@ SCLI_CMD_RET cmd_reflow(uint8_t argc, char *argv[])
195195
return 0;
196196
}
197197

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

0 commit comments

Comments
 (0)