Work on Authentication System(s)
[matches/MCTX3420.git] / server / bbb_pin.c
index 4d1276b..7248c5a 100644 (file)
@@ -272,7 +272,7 @@ bool ADC_Export(int pin)
                return true;
        }
 
-       sprintf(g_buffer, "%s/in_voltage%d_raw", g_options.adc_device_path, pin);
+       sprintf(g_buffer, "%s/in_voltage%d_raw", ADC_DEVICE_PATH, pin);
        g_adc[pin].fd_value = open(g_buffer, O_RDONLY);
        if (g_adc[pin].fd_value <0)
        {
@@ -486,4 +486,4 @@ bool ADC_Read(int id, int *value)
 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
+#endif

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