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.
Dependencies: mbed
Fork of WaG by
Diff: display.cpp
- Revision:
- 14:be27f6e21a8a
- Parent:
- 13:8936b2f64aa2
- Child:
- 15:100321eb2aac
diff -r 8936b2f64aa2 -r be27f6e21a8a display.cpp --- a/display.cpp Tue Feb 27 16:16:04 2018 +0000 +++ b/display.cpp Tue Feb 27 17:06:37 2018 +0000 @@ -18,8 +18,8 @@ #include <stdio.h> #include <string.h> -#define VERSION1 -//#define VERSION2 +//#define VERSION1 +#define VERSION2 /* @@ -102,11 +102,9 @@ * Returns: void */ void bin2bcd_array(int num, char bcd[]) { - int size = 4; int place = 0; while (num != 0) { //converts decimal input to decimal array using %mod int val = num % 10; - //dec_arr[place] = val; bcd[place] = val; num = num/10; place++;