Fix crash when debug enabled.

This commit is contained in:
Henrik Ekblad
2015-03-20 19:45:26 +01:00
parent aa3fd74139
commit b72ac4b277
4 changed files with 11 additions and 5 deletions
+2 -4
View File
@@ -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
+1
View File
@@ -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
+1 -1
View File
@@ -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>
+7
View File
@@ -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