max5487: fix optional parameter in constructor

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll 2014-11-13 16:38:35 +00:00
parent e3bdef0ef0
commit 726e40d6c5
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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