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.
Diff: main.cpp
- Revision:
- 5:9c82d0bfc647
- Parent:
- 4:6eb0d62c4fbf
--- 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);