__attribute__((unused)) added to val and dac, to suppress Travis Error