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-dev-f303 FastPWM3
Dependents: GT_MOTOR_24NM_V03 GT_MOTOR_24NM_V03_PT1000CalTemp
Diff: PreferenceWriter/PrefrenceWriter.cpp
- Revision:
- 24:58c2d7571207
- Parent:
- 23:2adf23ee0305
diff -r 2adf23ee0305 -r 58c2d7571207 PreferenceWriter/PrefrenceWriter.cpp
--- a/PreferenceWriter/PrefrenceWriter.cpp	Wed Apr 05 20:54:16 2017 +0000
+++ b/PreferenceWriter/PrefrenceWriter.cpp	Fri Apr 07 16:23:39 2017 +0000
@@ -34,6 +34,7 @@
     for (; offs < 320; offs++) {
         writer->write(offs, __float_reg[offs - 256]);
     }
+    __ready = false;
 }
 
 void PreferenceWriter::load() {
@@ -47,5 +48,6 @@
 }
 
 void PreferenceWriter::close() {
+    __ready = false;
     writer->close();
 }
\ No newline at end of file