beaglelogic: Update api.c with new beaglelogic.h

 * Update errnoeous channel count in comment
 * Cleanup redundant code

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>