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.
Revision 5:9c82d0bfc647, committed 2020-01-13
- Comitter:
- mirzamesic
- Date:
- Mon Jan 13 17:59:45 2020 +0000
- Parent:
- 4:6eb0d62c4fbf
- Commit message:
- vollProgrammV2
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);