ERNICommunity / iof-aquarium-controller

Internet of Fish Aquarium Controller
2 stars 2 forks source link

FishActuator: HW ID limit not managed #1

Open dniklaus opened 8 years ago

dniklaus commented 8 years ago

The FishActuator component allows to configure Fish on any HW ID being in the range of unsigend int. The range shall be restricted to 0..n-1, n = 992. Rationale: The Adafruit 16-Channel 12-bit PWM/Servo Driver breakouts allow to chain up to 62 devices with 16 ports each.

dniklaus commented 8 years ago

With commit 81729b6 the range check has to be done as {1..n}, nMAX = 992, nCURRENT=16 (to be a parameter according the actual HW setup).