Browse Source
Update miPayload.h
correct arguments for retransmission requests
pull/1190/head
rejoe2
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/hm/miPayload.h
|
|
@ -342,7 +342,7 @@ class MiPayload { |
|
|
|
} else if(iv->devControlCmd == ActivePowerContr) { |
|
|
|
DPRINT_IVID(DBG_INFO, iv->id); |
|
|
|
DBGPRINTLN(F("retransmit power limit")); |
|
|
|
mRadio->sendControlPacket(iv->radioId.u64, iv->devControlCmd, iv->powerLimit, true, false, iv->getMaxPower()); |
|
|
|
mRadio->sendControlPacket(iv->radioId.u64, iv->devControlCmd, iv->powerLimit, true, false, iv->powerLimit[1] == RelativNonPersistent ? 0 : iv->getMaxPower()); |
|
|
|
} else { |
|
|
|
uint8_t cmd = mPayload[iv->id].txCmd; |
|
|
|
if (mPayload[iv->id].retransmits < mMaxRetrans) { |
|
|
|