Skip to content

Commit 30749bd

Browse files
committed
Fix missing parentheses in DEBUG_ENTRY and DEBUG_EXIT calls
Added missing parentheses to calls of DEBUG_ENTRY and DEBUG_EXIT macros/functions in dmx.cpp to ensure proper execution. This change improves code correctness and consistency.
1 parent 9b020df commit 30749bd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib-dmx/src/gd32/dmx.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ static void UartDmxConfig(uint32_t usart_periph)
16681668

16691669
Dmx::Dmx()
16701670
{
1671-
DEBUG_ENTRY
1671+
DEBUG_ENTRY();
16721672

16731673
assert(s_this == nullptr);
16741674
s_this = this;
@@ -1742,7 +1742,7 @@ Dmx::Dmx()
17421742
NVIC_EnableIRQ(UART7_IRQn);
17431743
#endif
17441744

1745-
DEBUG_EXIT
1745+
DEBUG_EXIT();
17461746
}
17471747

17481748
void Dmx::SetPortDirection(uint32_t port_index, dmx::PortDirection port_direction, bool enable_data)
@@ -2184,7 +2184,7 @@ template <uint32_t portIndex, bool hasStartCode, dmx::SendStyle dmxSendStyle> vo
21842184

21852185
void Dmx::Blackout()
21862186
{
2187-
DEBUG_ENTRY
2187+
DEBUG_ENTRY();
21882188

21892189
for (uint32_t port_index = 0; port_index < DMX_MAX_PORTS; port_index++)
21902190
{
@@ -2196,12 +2196,12 @@ void Dmx::Blackout()
21962196
}
21972197
}
21982198

2199-
DEBUG_EXIT
2199+
DEBUG_EXIT();
22002200
}
22012201

22022202
void Dmx::FullOn()
22032203
{
2204-
DEBUG_ENTRY
2204+
DEBUG_ENTRY();
22052205

22062206
for (uint32_t port_index = 0; port_index < DMX_MAX_PORTS; port_index++)
22072207
{
@@ -2224,7 +2224,7 @@ void Dmx::FullOn()
22242224
}
22252225
}
22262226

2227-
DEBUG_EXIT
2227+
DEBUG_EXIT();
22282228
}
22292229

22302230
void Dmx::StartOutput(uint32_t port_index)

0 commit comments

Comments
 (0)