Optimaze with new mbed os for study

Dependencies:   TS_DISCO_F746NG BSP_DISCO_F746NG Graphics

Revision:
1:5e49b46de1b0
Parent:
0:d8b9955d2b36
Child:
2:8db224cc1fcb
--- a/RadarDemo/Radar.cpp	Fri Nov 04 01:02:37 2016 +0000
+++ b/RadarDemo/Radar.cpp	Fri Nov 04 17:10:50 2016 +0000
@@ -140,7 +140,7 @@
 }
 
 
-void Radar::UpdateTargetsLocation(float startAngle, float endAngle, uint32_t currentTime)
+bool Radar::UpdateTargetsLocation(float startAngle, float endAngle, uint32_t currentTime)
 {
     int count = 0;
     for (std::list<Target>::iterator it = targetsList.begin(); it != targetsList.end(); ++it) {
@@ -159,9 +159,7 @@
         }
     }
 
-//    if(count > 0) {
-//        pc.printf("%d targets updated for angle (%3.1f, %3.1f>\r\n", count, startAngle * 180.f/M_PI, endAngle * 180.f/M_PI);
-//    }
+    return count > 0;
 }