charles macneill / Vl6180_Lib

Files at this revision

API Documentation at this revision

Comitter:
charlesmn
Date:
Wed Oct 28 16:06:15 2020 +0000
Parent:
0:1da5e4bcb8e5
Commit message:
fix compiler error. Replace #ifdef 0 with #if 0

Changed in this revision

VL6160SRC/6180a1.c Show annotated file Show diff for this revision Revisions of this file
--- a/VL6160SRC/6180a1.c	Wed Oct 28 14:51:47 2020 +0000
+++ b/VL6160SRC/6180a1.c	Wed Oct 28 16:06:15 2020 +0000
@@ -283,7 +283,7 @@
  * F401 valid may not work for over device
  */
 
-#ifdef 0
+#if 0
 void XNUCLEO6180XA1_I2C1_Init(I2C_HandleTypeDef *hi2c1) {
     GPIO_InitTypeDef GPIO_InitStruct;
     uint8_t ExpanderID[2];
@@ -535,7 +535,7 @@
 #undef S6
 #undef DP
 
-#ifdef 0
+#if 0
 static void _V1_DisplayString(const char *str, int SegDelayMs){
     int i;
     const char *pc;
@@ -593,7 +593,7 @@
 
 
 
-#ifdef 0
+#if 0
 static void _V1_GPIO_Init(void) {
 
     GPIO_InitTypeDef GPIO_InitStruct;
@@ -651,7 +651,7 @@
 
 static void _V2_GPIO_Init(){
     uint16_t PadDir;
-#ifdef 0
+#if 0
     GPIO_InitTypeDef GPIO_InitStruct;
 
     __GPIOA_CLK_ENABLE();
@@ -684,7 +684,7 @@
     V2_ExpanderWR(GPSR, (uint8_t*)&_V2PadVal, 2);
 }
 
-#ifdef 0
+#if 0
 static void _V1_DisplayOff() {
     int i;
     for( i=0; i<4; i++ ){
@@ -693,7 +693,7 @@
 }
 #endif
 
-#ifdef 0
+#if 0
 /* set 7 segment bus to display decode "value" */
 static void _V1_Set7Segment(const uint8_t value) {
     int i;