crappy hacks to disable pin code on x86 platforms while silencing gcc
[matches/MCTX3420.git] / server / bbb_pin.c
index a652b97..4d1276b 100644 (file)
@@ -479,4 +479,11 @@ bool ADC_Read(int id, int *value)
 
        *value = strtol(adc_str, NULL, 10);
        return true;
-}
\ No newline at end of file
+}
+
+#ifndef _BBB
+//For running on systems that are not the BBB
+bool True_Stub(void *arg, ...) { return true; }
+bool ADC_Read_Stub(int *val, ...) { *val = 0; return true; }
+bool GPIO_Read_Stub(bool *val, ...) { *val = false; return true; }
+#endif
\ No newline at end of file

UCC git Repository :: git.ucc.asn.au