Skip to content

Commit 07b5043

Browse files
hhvrcCopilot
andauthored
Update src/radio/rmt/Sequence.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 541f60b commit 07b5043

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/radio/rmt/Sequence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Rmt::Sequence::Sequence(ShockerModelType shockerModel, uint16_t shockerId, int64
4646
, m_shockerId(shockerId)
4747
, m_shockerModel(shockerModel)
4848
{
49-
if (m_size <= 0) return;
49+
if (m_size == 0) return;
5050

5151
m_data = reinterpret_cast<rmt_data_t*>(malloc(m_size * 2 * sizeof(rmt_data_t)));
5252
if (m_data == nullptr) {

0 commit comments

Comments
 (0)