Skip to content

Commit

Permalink
Local constant for maximum file designator length
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Mar 30, 2022
1 parent 24603c8 commit 1018524
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ class BdxOtaSender : public chip::bdx::Responder
chip::Callback::Callback<OnBdxTransferComplete> * mOnTransferCompleteCallback = nullptr;
chip::Callback::Callback<OnBdxTransferFailed> * mOnTransferFailedCallback = nullptr;

// Maximum file designator length
static constexpr uint8_t kMaxFDLen = 30;
// Null-terminated string representing file designator
char mFileDesignator[30];
char mFileDesignator[kMaxFDLen];
};

0 comments on commit 1018524

Please sign in to comment.