Update max7310.c

These changes have been confirmed by the author.
Thanks.