netsender: error from pin read fail not handled

Issue #7 resolved
Emily Braggs created an issue

On line 252 an error is generated but the pin read error is ignored.

for i, pin := range pins {
    pins[i].Value, err = ns.read(pin.Name)
}

Could we either return this or log the error?

Comments (3)

  1. kortschak

    Thanks for filing this. I noticed it the other day when I was helping Jack through the errors he was seeing with the tests, but then proceeded to forget.

  2. Alan Noble

    Logging is preferable. We don't want to return an error just because one pin read failed (out of possibly several pins which were fine). The pin read function must return -1 in the event of an error though.

  3. Log in to comment