GroupA / Mbed 2 deprecated Lab_6_WaG

Dependencies:   mbed

Fork of WaG by GroupA

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++;