forked from Crim/Arduino-Nissan-Consult-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConsultErrorCode.h
More file actions
43 lines (34 loc) · 932 Bytes
/
Copy pathConsultErrorCode.h
File metadata and controls
43 lines (34 loc) · 932 Bytes
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
/**
Arduino Consult
June 12th 2011 - Stephen Powis (edrsp@mindspring.com)
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.
**/
#ifndef ConsultErrorCode_h
#define ConsultErrorCode_h
// Include default arduino stuffs
#include "WProgram.h"
class ConsultErrorCode
{
private:
int _code;
int _lastSeen;
public:
// Constructors
ConsultErrorCode();
ConsultErrorCode(int code, int lastSeen);
// Setters
void setCode(int code);
void setLastSeen(int lastSeen);
// Getters
int getCode();
int getLastSeen();
};
#endif