Fix crash when debug enabled.
This commit is contained in:
@@ -9,15 +9,13 @@
|
|||||||
// Serial output baud rate
|
// Serial output baud rate
|
||||||
#define BAUD_RATE 115200
|
#define BAUD_RATE 115200
|
||||||
|
|
||||||
// Set the hardware driver to use (initialized by MySensor-class)
|
|
||||||
#include "MyHwATMega328.h"
|
|
||||||
typedef MyHwATMega328 MyHwDriver;
|
|
||||||
|
|
||||||
/**********************************
|
/**********************************
|
||||||
* Message Signing Settings
|
* Message Signing Settings
|
||||||
***********************************/
|
***********************************/
|
||||||
// Disable to completly disable signing functionality in library
|
// Disable to completly disable signing functionality in library
|
||||||
#define MY_SIGNING_FEATURE
|
//#define MY_SIGNING_FEATURE
|
||||||
|
|
||||||
// Define a suitable timeout for a signature verification session
|
// Define a suitable timeout for a signature verification session
|
||||||
// Consider the turnaround from a nonce being generated to a signed message being received
|
// Consider the turnaround from a nonce being generated to a signed message being received
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include "MyConfig.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Hw contains all hardware specific details of the platform
|
* The Hw contains all hardware specific details of the platform
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#define MyHwATMega328_h
|
#define MyHwATMega328_h
|
||||||
|
|
||||||
#include "MyHw.h"
|
#include "MyHw.h"
|
||||||
//#include "MyConfig.h"
|
#include "MyConfig.h"
|
||||||
#include "MyMessage.h"
|
#include "MyMessage.h"
|
||||||
#include <avr/eeprom.h>
|
#include <avr/eeprom.h>
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|||||||
@@ -27,6 +27,13 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
|
||||||
|
// Set the hardware driver to use (initialized by MySensor-class)
|
||||||
|
#if defined __AVR_ATmega328P__
|
||||||
|
#include "MyHwATMega328.h"
|
||||||
|
typedef MyHwATMega328 MyHwDriver;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define debug(x,...) hw.debugPrint(isGateway, x, ##__VA_ARGS__)
|
#define debug(x,...) hw.debugPrint(isGateway, x, ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user