@mega-yfue/eufy-sdk 0.5.0-beta.81 → 0.5.0-beta.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17873,7 +17873,7 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
|
|
|
17873
17873
|
this.emit("error", e instanceof Error ? e : new Error(String(e)));
|
|
17874
17874
|
}
|
|
17875
17875
|
}
|
|
17876
|
-
const paddedResult = header.commandId === CMD_SET_PAYLOAD &&
|
|
17876
|
+
const paddedResult = header.commandId === CMD_SET_PAYLOAD && header.signCode === 0 && data.length === PADDED_RESULT_BYTES;
|
|
17877
17877
|
if (!isMedia && !frame.json && (data.length === 4 || paddedResult)) {
|
|
17878
17878
|
this.emit("commandResult", { code: data.readInt32LE(0), channel: header.channel });
|
|
17879
17879
|
}
|