forked from Crim/Arduino-Nissan-Consult-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConsultErrorCode.cpp
53 lines (42 loc) · 990 Bytes
/
ConsultErrorCode.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
Arduino Consult
June 12th 2011 - Stephen Powis ([email protected])
Note:
Much of this logic swiped from Patrick Cole's Empeg Consult
and simply ported to run on the Arduino platform.
(http://www.suupremez.com/empeg-consult)
Licensed under the GPL V2
Feel free to use this code for whatever you want,
all that I ask that if you do use it, shoot me an email and
let me know what for! Its always cool to hear when people
find your code useful.
**/
#include "WProgram.h"
#include "ConsultErrorCode.h"
// Default Constructor
ConsultErrorCode::ConsultErrorCode()
{
}
ConsultErrorCode::ConsultErrorCode(int code, int lastSeen)
{
setCode(code);
setLastSeen(lastSeen);
}
// Setters
void ConsultErrorCode::setCode(int code)
{
_code = code;
}
void ConsultErrorCode::setLastSeen(int lastSeen)
{
_lastSeen = lastSeen;
}
// Getters
int ConsultErrorCode::getCode()
{
return _code;
}
int ConsultErrorCode::getLastSeen()
{
return _lastSeen;
}