Skip to content

Commit fadd317

Browse files
author
Anton N
committed
Use enum CAN_CLOCK
1 parent a1bd360 commit fadd317

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CanHacker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Stream *CanHacker::getInterfaceStream() {
5454
return _stream;
5555
}
5656

57-
void CanHacker::setClock(uint8_t clock){
57+
void CanHacker::setClock(CAN_CLOCK clock){
5858
canClock = clock;
5959
}
6060

CanHacker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CanHacker {
4747

4848
CanHacker(Stream *stream, Stream *debugStream, uint8_t cs);
4949
~CanHacker();
50-
void setClock(const uint8_t clock);
50+
void setClock(const CAN_CLOCK clock);
5151
ERROR receiveCommand(const char *buffer, const int length);
5252
ERROR receiveCanFrame(const struct can_frame *frame);
5353
ERROR sendFrame(const struct can_frame *);
@@ -65,7 +65,7 @@ class CanHacker {
6565
static const char BEL = 7;
6666
static const uint16_t TIMESTAMP_LIMIT = 0xEA60;
6767

68-
uint8_t canClock = MCP_16MHZ;
68+
CAN_CLOCK canClock = MCP_16MHZ;
6969
bool _timestampEnabled = false;
7070
bool _listenOnly = false;
7171
bool _loopback = false;

0 commit comments

Comments
 (0)