Amaldi / Mbed 2 deprecated Amaldi_Exercise_IHM05A1_new

Dependencies:   mbed X-NUCLEO-IHM05A1

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Fri Mar 24 13:31:04 2017 +0000
Parent:
5:bc710d77d801
Child:
7:27124344c5e5
Commit message:
With the new version of the library.

Changed in this revision

X-NUCLEO-IHM05A1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/X-NUCLEO-IHM05A1.lib	Fri Mar 24 11:00:38 2017 +0100
+++ b/X-NUCLEO-IHM05A1.lib	Fri Mar 24 13:31:04 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/X-NUCLEO-IHM05A1/#2af31245e67e
+https://developer.mbed.org/teams/ST/code/X-NUCLEO-IHM05A1/#0b52159554b5
--- 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) {