Several examples run on only mbed-os5.13.0 (not 5.14.0)

Dependencies:   BD_SD_DISCO_F769NI BSP_DISCO_F769NI LCD_DISCO_F769NI TS_DISCO_F769NI USBHost_F769NI

Revision:
4:0f4affc00183
Parent:
3:35ac9ee7d2d6
diff -r 35ac9ee7d2d6 -r 0f4affc00183 check_revision.cpp
--- a/check_revision.cpp	Wed Aug 07 05:39:01 2019 +0000
+++ b/check_revision.cpp	Mon Oct 14 08:55:15 2019 +0000
@@ -5,11 +5,33 @@
  *  http://www.page.sannet.ne.jp/kenjia/index.html
  *  https://os.mbed.com/users/kenjiArai/
  *      Created:    July      17th, 2019
- *      Revised:    August     2nd, 2019
+ *      Revised:    October   14th, 2019
  */
 
 #include "mbed.h"
 
+#if 0   // as of Oct.14th, Latest revision does not work for DISCO-F769
+// #1 RTC -> NG -> pc.readable() does not work
+// #2 LCD -> NG -> LCD screen is not stable
+// #3 Tiuch -> NG -> LCD screen is not stable
+// #4 & beyond -> Gave up for checking
+
+//    RUN ONLY ON mbed-os5.14.0
+#if (MBED_MAJOR_VERSION == 5) &&\
+    (MBED_MINOR_VERSION == 14) &&\
+    (MBED_PATCH_VERSION == 0)
+    #if defined(TARGET_STM32F769NI)
+        // correct mbed-os version
+    #else
+        #error "Not DISCO-F769NI"
+    #endif
+#else
+    //#warning "Please use Mbed-os5.14.0"
+    #error "Please use Mbed-os5.14.0"
+#endif
+
+#else   // Only works well this revision
+
 //    RUN ONLY ON mbed-os5.13.0
 #if (MBED_MAJOR_VERSION == 5) &&\
     (MBED_MINOR_VERSION == 13) &&\
@@ -17,9 +39,11 @@
     #if defined(TARGET_STM32F769NI)
         // correct mbed-os version
     #else
-        #error "DISCO-F769NI"
+        #error "Not DISCO-F769NI"
     #endif
 #else
     //#warning "Please use Mbed-os5.13.0"
-    #error "Please use Mbed-os5.13.0"
+    #error "Please use Mbed-os5.13.0(7482462434 25 Jun 2019 Martin Kojtal)"
+#endif
+
 #endif
\ No newline at end of file