Since some boards an int is 16 bits the atoi truncates values. This commit using a long instead of an int.