Mirza Mesic / Mbed 2 deprecated tinf_test_mesic_mirza_V2

Dependencies:   mbed

Revision:
5:9c82d0bfc647
Parent:
4:6eb0d62c4fbf
diff -r 6eb0d62c4fbf -r 9c82d0bfc647 main.cpp
--- a/main.cpp	Mon Jan 13 17:42:09 2020 +0000
+++ b/main.cpp	Mon Jan 13 17:59:45 2020 +0000
@@ -28,7 +28,7 @@
 
 int modifyBit(int x,uint8_t position, bool State)
 {
-    int mask = 1>>position;
+    int mask = 1<<position;
     int state = int(State);
     return(x & ~mask) | ((state<<position) & mask);