From 726e40d6c55058fa84cfc3566b0b7fe31c44fb45 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Thu, 13 Nov 2014 16:38:35 +0000 Subject: [PATCH] max5487: fix optional parameter in constructor Signed-off-by: Brendan Le Foll --- src/max5487/max5487.cxx | 2 +- src/max5487/max5487.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/max5487/max5487.cxx b/src/max5487/max5487.cxx index 16b7a78f..44c917c6 100644 --- a/src/max5487/max5487.cxx +++ b/src/max5487/max5487.cxx @@ -37,7 +37,7 @@ struct MAX5487Exception : public std::exception { const char* what() const throw () { return message.c_str(); } }; -MAX5487::MAX5487 (int csn = -1) { +MAX5487::MAX5487 (int csn) { mraa_result_t error = MRAA_SUCCESS; m_name = "MAX5487"; diff --git a/src/max5487/max5487.h b/src/max5487/max5487.h index c0cca7d9..cf1e8bd6 100644 --- a/src/max5487/max5487.h +++ b/src/max5487/max5487.h @@ -62,7 +62,7 @@ class MAX5487 { * * @param csn to use if any, by default will use ICSP CS (-1) */ - MAX5487 (int csn); + MAX5487 (int csn = -1); /** * MAX5487 object destructor, closes all IO connections