X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fbbb_pin.c;h=bd31365cdecb61aa17768554531d680bfb6b4f19;hb=7e9d726ccd53626251e56b92c8eec47772bfe0f9;hp=2d98b39479d36d25b1bfc33288bdf98404c4eca7;hpb=c8f70bb5f4a576f1fd072ae16df7527a4e1800e8;p=matches%2FMCTX3420.git diff --git a/server/bbb_pin.c b/server/bbb_pin.c index 2d98b39..bd31365 100644 --- a/server/bbb_pin.c +++ b/server/bbb_pin.c @@ -501,7 +501,8 @@ bool ADC_Read(int id, int *value) if (pread(g_adc[id].fd_value, adc_str, ADC_DIGITS-1, 0) == -1) { - AbortBool("ADC %d read failed: %s", id, strerror(errno)); + //AbortBool("ADC %d read failed: %s", id, strerror(errno)); + return false; } *value = strtol(adc_str, NULL, 10); @@ -510,7 +511,7 @@ bool ADC_Read(int id, int *value) #ifndef _BBB //For running on systems that are not the BBB -bool True_Stub(void *arg, ...) { return true; } +bool True_Stub(int arg, ...) { return true; } bool ADC_Read_Stub(int *val, ...) { *val = 0; return true; } bool GPIO_Read_Stub(bool *val, ...) { *val = false; return true; } #endif