X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fbbb_pin.c;h=4d1276b1d7647cfcfcc733ab4b2f6808568b99a8;hb=218c2d77e10b28315864990acbcf55ffe26a76e9;hp=a652b97f4e12078f817f14863e7370e0d35abe0b;hpb=6982a9002923c2297cd2e2e1ec10ccb331b01eb5;p=matches%2FMCTX3420.git diff --git a/server/bbb_pin.c b/server/bbb_pin.c index a652b97..4d1276b 100644 --- a/server/bbb_pin.c +++ b/server/bbb_pin.c @@ -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