Here's the debug() function that gets called in readADC. I don't know why it would matter since it worked fine when just clicking a button manually.

Qt Code:
  1. void arm_rev0::debug(QString buffer)
  2. {
  3. /*Write to window
  4.   msg.append(buffer);
  5.   msg.append("\n");
  6.   ui->t_debug->setText(msg);
  7.   */
  8.  
  9. /*Write to log file*/
  10.  
  11. log << buffer << '\n';
  12. log.flush();
  13.  
  14.  
  15.  
  16. }
To copy to clipboard, switch view to plain text mode