Fix stratum embedded fpgas to not duplicate work with other devices
diff --git a/driver-avalon2.c b/driver-avalon2.c
index 0da00d0..d271afe 100644
--- a/driver-avalon2.c
+++ b/driver-avalon2.c
@@ -841,8 +841,8 @@ static void avalon2_update(struct cgpu_info *avalon2)
memcpy(send_pkg.data + 8, &tmp, 4);
/* Configure the nonce2 offset and range */
- range = 0xffffffff / total_devices;
- start = range * avalon2->device_id;
+ range = 0xffffffff / (total_devices + 1);
+ start = range * (avalon2->device_id + 1);
tmp = be32toh(start);
memcpy(send_pkg.data + 12, &tmp, 4);
diff --git a/driver-hashratio.c b/driver-hashratio.c
index 3f4dc7f..c74324c 100644
--- a/driver-hashratio.c
+++ b/driver-hashratio.c
@@ -753,8 +753,8 @@ static void hashratio_update_work(struct cgpu_info *hashratio)
applog(LOG_DEBUG, "set freq: %d", info->default_freq);
/* Configure the nonce2 offset and range */
- range = 0xffffffff / total_devices;
- start = range * hashratio->device_id;
+ range = 0xffffffff / (total_devices + 1);
+ start = range * (hashratio->device_id + 1);
tmp = be32toh(start);
memcpy(send_pkg.data + 8, &tmp, 4);