Update events.c
Update events.c

Array max is incorrectly calculated, can lead to missed events for ids > MAX_DEVICES
76Demented/bootable_recovery-,kylinmoddev/android_bootable_recovery,InsomniaAOSP/platform_bootable_recovery,InsomniaAOSP/platform_bootable_recovery,InsomniaAOSP/platform_bootable_recovery,DerTeufel/dualboot_recovery,DerTeufel/dualboot_recovery,DerTeufel/dualboot_recovery,76Demented/bootable_recovery-,kylinmoddev/android_bootable_recovery,kylinmoddev/android_bootable_recovery,76Demented/bootable_recovery-,Plain-Andy/android_platform_bootable_recovery,76Demented/bootable_recovery-,InsomniaAOSP/platform_bootable_recovery,Plain-Andy/android_platform_bootable_recovery,76Demented/bootable_recovery-,Plain-Andy/android_platform_bootable_recovery,kylinmoddev/android_bootable_recovery,Plain-Andy/android_platform_bootable_recovery,DerTeufel/dualboot_recovery,InsomniaAOSP/platform_bootable_recovery,DerTeufel/dualboot_recovery