Skip to content

Commit 33db784

Browse files
committed
added update function to example, change build out dir
1 parent 10b0e46 commit 33db784

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/stm32f4_discovery/can_m2515/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class MyTask : modm::pt::Protothread
6868
mcp2515.getMessage(message_);
6969
MODM_LOG_INFO << "Received message: " << message_.identifier << modm::endl;
7070
}
71+
mcp2515.update();
7172
}
7273
PT_END();
7374
}

examples/stm32f4_discovery/can_m2515/project.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<library>
22
<extends>modm:disco-f407vg</extends>
33
<options>
4-
<option name="modm:build:build.path">../../../build/stm32f4_discovery/spi</option>
4+
<option name="modm:build:build.path">../../../build/stm32f4_discovery/mcp2515</option>
55
</options>
66
<modules>
77
<module>modm:platform:gpio</module>
88
<module>modm:platform:spi.bitbang</module>
99
<module>modm:platform:spi:2</module>
1010
<module>modm:build:scons</module>
1111

12-
1312
<module>modm:processing:protothread</module>
1413
<module>modm:processing:timer</module>
1514
<module>modm:driver:mcp2515</module>

0 commit comments

Comments
 (0)