Reduce number of watchdog timer resets and rename Makefile target
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static void Puts(const char *str);
|
||||
static void PrintArgs(const char *fmt, va_list ap);
|
||||
static void Puts(const char *str);
|
||||
static void PrintArgs(const char *fmt, va_list ap);
|
||||
|
||||
void Print(const char *fmt, ...)
|
||||
{
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
#ifndef MAD_CORE_COMMON_MATH_H
|
||||
#define MAD_CORE_COMMON_MATH_H
|
||||
|
||||
float Resistance(int adc_raw);
|
||||
float SteinhartHart(float res);
|
||||
|
||||
float Dewpoint(float t, float rh);
|
||||
float Temperature(float td, float rh);
|
||||
float RelHumidity(float t, float td);
|
||||
float Resistance(int adc_raw);
|
||||
float SteinhartHart(float res);
|
||||
float Dewpoint(float t, float rh);
|
||||
float Temperature(float td, float rh);
|
||||
float RelHumidity(float t, float td);
|
||||
|
||||
#endif // MAD_CORE_COMMON_MATH_H
|
||||
|
||||
@@ -38,6 +38,9 @@ bool CMD_Parse(char ch, cmd_t *out)
|
||||
if (head < tail - 1) {
|
||||
*head++ = ch;
|
||||
*head = '\0';
|
||||
} else {
|
||||
// No space left
|
||||
WDT_Reset();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user