Wim Huiskamp / Mbed 2 deprecated mbed_nucleo_stmstudio

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
wim
Date:
Sat Mar 19 22:22:59 2016 +0000
Parent:
5:233f5aeeec5f
Commit message:
Test 5

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Mar 14 21:45:14 2016 +0000
+++ b/main.cpp	Sat Mar 19 22:22:59 2016 +0000
@@ -150,7 +150,7 @@
     c++;
     s = 100.0f * sin((float)c * 3.1415f / 128.0f);
     b1 = myBtn1;
-    if (b1 & (b2 == 1)) {
+    if (b1 && (b2 == 1)) {
       pc.putc('1');
       wt = 0.7f;
     }