Changeset 13241 for trunk


Ignore:
Timestamp:
03/26/12 22:56:51 (13 years ago)
Author:
tbretz
Message:
Added another sanity check for the output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/feedback.cc

    r13240 r13241  
    256256
    257257        ostringstream msg;
    258         msg << setprecision(4) << "Sending new absolute offset (" << diff << "V+" << (avg[0]+avg[1])/(num[0]+num[1]) << "V) to biasctrl.";
     258        msg << setprecision(4) << "Sending new absolute offset (" << diff << "V+" << (num[0]+num[1]>0?(avg[0]+avg[1])/(num[0]+num[1]):0) << "V) to biasctrl.";
    259259        Info(msg);
    260260
Note: See TracChangeset for help on using the changeset viewer.