diff --git a/src/MCP2515.cpp b/src/MCP2515.cpp index 36c160d..3666810 100644 --- a/src/MCP2515.cpp +++ b/src/MCP2515.cpp @@ -375,8 +375,8 @@ int MCP2515Class::loopback() int MCP2515Class::sleep() { - writeRegister(REG_CANCTRL, 0x01); - if (readRegister(REG_CANCTRL) != 0x01) { + writeRegister(REG_CANCTRL, 0x20); + if (readRegister(REG_CANCTRL) != 0x20) { return 0; }