Skip to content

Commit 0a395b6

Browse files
author
Sebastian Stockhammer
committed
Fix astyle
1 parent e218b5d commit 0a395b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/source/SerialBase.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ void SerialBase::_deinit()
133133
void SerialBase::_enable_input(bool enable)
134134
{
135135
if (_rx_enabled != enable) {
136-
if(enable && !_tx_enabled) {
136+
if (enable && !_tx_enabled) {
137137
_init();
138138
}
139139

140140
core_util_critical_section_enter();
141141
if (enable) {
142142
// Enable rx IRQ if attached (indicated by rx IRQ callback not NULL)
143-
if(_irq[RxIrq]) {
143+
if (_irq[RxIrq]) {
144144
_irq[RxIrq].call();
145145
serial_irq_set(&_serial, (SerialIrq)RxIrq, 1);
146146
}
@@ -161,14 +161,14 @@ void SerialBase::_enable_input(bool enable)
161161
void SerialBase::_enable_output(bool enable)
162162
{
163163
if (_tx_enabled != enable) {
164-
if(enable && !_rx_enabled) {
164+
if (enable && !_rx_enabled) {
165165
_init();
166166
}
167167

168168
core_util_critical_section_enter();
169169
if (enable) {
170170
// Enable tx IRQ if attached (indicated by tx IRQ callback not NULL)
171-
if(_irq[TxIrq]) {
171+
if (_irq[TxIrq]) {
172172
_irq[TxIrq].call();
173173
serial_irq_set(&_serial, (SerialIrq)TxIrq, 1);
174174
}

0 commit comments

Comments
 (0)