Update README.md

This commit is contained in:
Dmitry
2016-01-06 20:40:55 +03:00
parent 0a91d60293
commit f1102f3b3e
+2 -1
View File
@@ -129,8 +129,9 @@ You can choise one of two method to receive: interrup-based and polling
Example of poll read Example of poll read
```C++ ```C++
struct can_frame frame;
void loop() { void loop() {
struct can_frame frame;
if (mcp2551.readMessage(&frame) == MCP_CAN::ERROR_OK) { if (mcp2551.readMessage(&frame) == MCP_CAN::ERROR_OK) {
// frame contains received message // frame contains received message
} }