Skip to content

Commit 750cff7

Browse files
committed
Fix math
1 parent 2cf37a1 commit 750cff7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

default/config/AcConstants.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ constant AssertFatalAdapterEventFileSize = FileNameStringSize
6262

6363
@ The maximum size in bytes for passing sequence arguments through CmdSeqIn ports
6464
@ Note: This must fit within FW_CMD_ARG_BUFFER_MAX_SIZE along with cmd arguments using Svc::SeqArgs
65-
@ Total serialized size: fileName (~200 bytes) + Fw::Wait (4 bytes) + SeqArgs (8 + buffer_size)
66-
constant SequenceArgumentsMaxSize = FW_CMD_ARG_BUFFER_MAX_SIZE - FileNameStringSize - 8 - 8
65+
@ Total serialized size: string length prefix + fileName + BlockState + SeqArgs.size field + buffer
66+
constant SequenceArgumentsMaxSize = FW_CMD_ARG_BUFFER_MAX_SIZE - sizeof(FwSizeStoreType) - FileNameStringSize - sizeof(U8) - sizeof(FwSizeType)

0 commit comments

Comments
 (0)