replace magic numbers with defines
fix MBUS_MAX_PRIMARY_SLAVES to 250