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: EsmacatShield X_NUCLEO_IHM01A1
Revision 17:4830b25fec7f, committed 2015-12-14
- Comitter:
- Davidroid
- Date:
- Mon Dec 14 17:29:14 2015 +0000
- Parent:
- 16:dc668a1bd3d8
- Child:
- 18:19d177002292
- Commit message:
- + Updated with no initialization structure passed by default.
Changed in this revision
| X_NUCLEO_IHM01A1.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_IHM01A1.lib Thu Dec 10 15:06:06 2015 +0000 +++ b/X_NUCLEO_IHM01A1.lib Mon Dec 14 17:29:14 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/X_NUCLEO_IHM01A1/#40470df81d9a +https://developer.mbed.org/teams/ST/code/X_NUCLEO_IHM01A1/#bec7dd79f328
--- a/main.cpp Thu Dec 10 15:06:06 2015 +0000
+++ b/main.cpp Mon Dec 14 17:29:14 2015 +0000
@@ -72,8 +72,8 @@
/* Initializing Motor Control Component. */
motor = new L6474(D2, D8, D7, D9, D10, dev_spi);
- if (motor->Init(NULL) != COMPONENT_OK)
- return false;
+ if (motor->Init() != COMPONENT_OK)
+ exit(EXIT_FAILURE);
/* Printing to the console. */
printf("Motor Control Application Example for 1 Motor\r\n\n");