Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed X-NUCLEO-IHM05A1
Diff: main.cpp
- Revision:
- 6:6fb625ef867a
- Parent:
- 5:bc710d77d801
- Child:
- 8:baedd289a8cc
diff -r bc710d77d801 -r 6fb625ef867a main.cpp
--- a/main.cpp Fri Mar 24 11:00:38 2017 +0100
+++ b/main.cpp Fri Mar 24 13:31:04 2017 +0000
@@ -94,7 +94,7 @@
void my_flag_irq_handler(void)
{
printf(" WARNING: \"FLAG\" interrupt triggered:\r\n");
- motor->Disable();
+ motor->disable();
printf(" Motor disabled.\r\n\n");
}
@@ -212,7 +212,7 @@
printf(" Position: %d.\r\n", motor->get_position());
/* Disable the power bridges */
- motor->Disable();
+ motor->disable();
/* Check that the power bridges are actually disabled */
if (motor->check_status_hw()!=0) {