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.
Revision 209:befed15596a7, committed 2018-02-20
- Comitter:
- bwang
- Date:
- Tue Feb 20 05:54:48 2018 +0000
- Parent:
- 208:3f3fe99c73ad
- Child:
- 210:f9b722cf8a2c
- Commit message:
- 02/20/2018 00:54 - moved modes.cpp to correct location
Changed in this revision
--- a/CHANGELOG.txt Wed Feb 14 04:16:41 2018 +0000 +++ b/CHANGELOG.txt Tue Feb 20 05:54:48 2018 +0000 @@ -48,4 +48,5 @@ 02/11/2018 21:11 - further improvements to mode handling, output overrides and output disabling now live in their own functions 02/11/2018 21:21 - cmd_exit() checks that motor is not running 02/13/2017 20:33 - set serial RX interrupt to be lower priority than commutation interrupt -02/13/2018 23:15 - cmd_flush() now works in all modes (otherwise the controller would only ever boot up in MODE_CFG) \ No newline at end of file +02/13/2018 23:15 - cmd_flush() now works in all modes (otherwise the controller would only ever boot up in MODE_CFG) +02/20/2018 00:54 - moved modes.cpp to correct location \ No newline at end of file
--- a/Transforms/modes.cpp Wed Feb 14 04:16:41 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-#include "prefs.h"
-
-bool mode_enables_logging() {
- switch(BREMS_mode) {
- case MODE_RUN:
- return true;
- case MODE_CFG:
- case MODE_ZERO:
- case MODE_CHR:
- return false;
- default:
- return false;
- }
-}
-
-bool mode_enables_output() {
- switch(BREMS_mode) {
- case MODE_RUN:
- case MODE_ZERO:
- case MODE_CHR:
- return true;
- case MODE_CFG:
- return false;
- default:
- return false;
- }
-}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/modes.cpp Tue Feb 20 05:54:48 2018 +0000
@@ -0,0 +1,27 @@
+#include "prefs.h"
+
+bool mode_enables_logging() {
+ switch(BREMS_mode) {
+ case MODE_RUN:
+ return true;
+ case MODE_CFG:
+ case MODE_ZERO:
+ case MODE_CHR:
+ return false;
+ default:
+ return false;
+ }
+}
+
+bool mode_enables_output() {
+ switch(BREMS_mode) {
+ case MODE_RUN:
+ case MODE_ZERO:
+ case MODE_CHR:
+ return true;
+ case MODE_CFG:
+ return false;
+ default:
+ return false;
+ }
+}
\ No newline at end of file