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.
Fork of muonhunter-K8 by
Diff: main.cpp
- Revision:
- 3:0a89a80bea94
- Parent:
- 2:66a2e52ad175
- Child:
- 4:87037e41c888
--- a/main.cpp Tue Oct 04 16:45:02 2016 +0000 +++ b/main.cpp Tue Oct 04 17:08:38 2016 +0000 @@ -182,13 +182,12 @@ hv1monitor.attach(&hv1monitor_, 0.1); hv2monitor.attach(&hv2monitor_, 0.1); - //ticker to monitor memory usage memory_checker.attach(&memory_checker_, 0.2); while(1){ - if(detections.size() > 1){ + while(!detections.empty()){ Detection temp = detections.front(); - pc.printf("%d, %d, %f, %f, %f \nr", detections.size(), temp.get_channel(), temp.get_time(), v1, v2); + pc.printf("%d, %d, %f, %f, %f \n\r", detections.size(), temp.get_channel(), temp.get_time(), v1, v2); detections.pop(); } wait(1);