31 #include "reflow_oven.h"
37 void debugPower(
void) {
42 printf(
"Power: %d\n",u8_currPowerSetting);
44 if (u8_c ==
'-') decrementPower();
45 if (u8_c ==
'+') incrementPower();
46 }
while ((u8_c ==
'-') || (u8_c ==
'+'));
50 void debugZeroCross(
void) {
63 void debugThermocouple(
void) {
64 float f_tempC,f_tempF;
66 f_tempC = getCelsiusFloatTemp();
67 f_tempF = f_tempC*9/5 + 32;
68 printf(
"Temp is: %4.4f (C), %4.4f (F)\n", (
double) f_tempC, (
double) f_tempF);
74 void doDebugMenu(
void) {
76 printf(
"Debug menu:\n");
77 printf(
" 't' - read thermocouple, hit any key to exit\n");
78 printf(
" 'z' - read zerocross, hit any key to exit \n");
79 printf(
" 'p' - control power setting, '+' increments,'-' decrements, other exits.\n");
80 printf(
" 'x' - exit to main menu\n");
81 printf(
"Enter character: ");
83 if (u8_c ==
't') debugThermocouple();
84 else if (u8_c ==
'z') debugZeroCross();
85 else if (u8_c ==
'p') debugPower();