Baud rate calculation for bluetooth module, baud rate error detection does not work because of an integer overflow