Skip to content

Commit

Permalink
add ds validation
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed Aug 28, 2022
1 parent 4605843 commit 2c8cd9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Drivers/Super/driver_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,11 @@ static DS_ERR_CODE DS_validate_stream_config_(DS_StreamConfig* p_stream_config)

if (p_stream_config->rx_frame_size_ > DS_RX_FRAME_SIZE_MAX) return DS_ERR_CODE_ERR; // [TODO] 現在はBigData未実装(詳細はヘッダファイル参照)のため,ここで弾く

if (p_stream_config->tx_frame_buffer_size_ >= 0)
{
if (p_stream_config->tx_frame_size_ > p_stream_config->tx_frame_buffer_size_) return DS_ERR_CODE_ERR;
}

if (p_stream_config->rx_frame_size_ < 0)
{
// テレメトリ可変長
Expand Down

0 comments on commit 2c8cd9b

Please sign in to comment.