Document reason for identical code in resnet.c line 613

This commit is contained in:
Couriersud 2014-05-17 16:59:53 +00:00
parent 9632494a77
commit 9f5ba56a63

View File

@ -612,6 +612,10 @@ int compute_res_net(int inputs, int channel, const res_net_info &di)
int level = ((inputs >> i) & 1);
if (di.rgb[channel].R[i] != 0.0 && !level)
{
// There is no difference in the calculation of the "low" input
// (transistor conducting to ground) between TTL output and
// open collector output. This is documented explicitly in the
// code below (no difference if / else.
if (OpenCol)
{
rTotal += 1.0 / di.rgb[channel].R[i];