         }
 
         if let sampleInt = Int(sampleString.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)) {
-//            print("Got value: \(sampleInt)")
             self.closeADC()
             return sampleInt
         } else {

            throw ADCError.fileError
        }
        
//        print("Sampling ADC at \(adcPath)")
        var returnData = [CChar].init(repeating: 0, count: 16)
        let count = read(fd, &returnData, 16)


    }
    
    private func openADC() {
        let fd  = open(adcPath, O_RDONLY)
        self.fd = fd
        
        if fd < 0 {
            fatalError("Couldn't open ADC device: \(strerror(errno))")
        }
    }
    
    private func closeADC() {
        close(fd)
        fd = -1
    }
