Skip to content

Commit 80bfa47

Browse files
JordanMajdturmary
authored andcommitted
Preserve original formatting on base sercom handler
1 parent a85ff1c commit 80bfa47

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

libraries/Wire/Wire.cpp

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ void TwoWire::onService(void)
284284
#endif // PERIPH_WIRE
285285
TwoWire Wire(&PERIPH_WIRE, PIN_WIRE_SDA, PIN_WIRE_SCL);
286286

287-
void WIRE_IT_HANDLER(void) { Wire.onService(); }
287+
void WIRE_IT_HANDLER(void) {
288+
Wire.onService();
289+
}
288290

289291
#if defined(__SAMD51__)
290292
void WIRE_IT_HANDLER_0(void) { Wire.onService(); }
@@ -297,7 +299,9 @@ void TwoWire::onService(void)
297299
#if WIRE_INTERFACES_COUNT > 1
298300
TwoWire Wire1(&PERIPH_WIRE1, PIN_WIRE1_SDA, PIN_WIRE1_SCL);
299301

300-
void WIRE1_IT_HANDLER(void) { Wire1.onService(); }
302+
void WIRE1_IT_HANDLER(void) {
303+
Wire1.onService();
304+
}
301305

302306
#if defined(__SAMD51__)
303307
void WIRE1_IT_HANDLER_0(void) { Wire1.onService(); }
@@ -310,7 +314,9 @@ void TwoWire::onService(void)
310314
#if WIRE_INTERFACES_COUNT > 2
311315
TwoWire Wire2(&PERIPH_WIRE2, PIN_WIRE2_SDA, PIN_WIRE2_SCL);
312316

313-
void WIRE2_IT_HANDLER(void) { Wire2.onService(); }
317+
void WIRE2_IT_HANDLER(void) {
318+
Wire2.onService();
319+
}
314320

315321
#if defined(__SAMD51__)
316322
void WIRE2_IT_HANDLER_0(void) { Wire2.onService(); }
@@ -323,7 +329,9 @@ void TwoWire::onService(void)
323329
#if WIRE_INTERFACES_COUNT > 3
324330
TwoWire Wire3(&PERIPH_WIRE3, PIN_WIRE3_SDA, PIN_WIRE3_SCL);
325331

326-
void WIRE3_IT_HANDLER(void) { Wire3.onService(); }
332+
void WIRE3_IT_HANDLER(void) {
333+
Wire3.onService();
334+
}
327335

328336
#if defined(__SAMD51__)
329337
void WIRE3_IT_HANDLER_0(void) { Wire3.onService(); }
@@ -336,7 +344,9 @@ void TwoWire::onService(void)
336344
#if WIRE_INTERFACES_COUNT > 4
337345
TwoWire Wire4(&PERIPH_WIRE4, PIN_WIRE4_SDA, PIN_WIRE4_SCL);
338346

339-
void WIRE4_IT_HANDLER(void) { Wire4.onService(); }
347+
void WIRE4_IT_HANDLER(void) {
348+
Wire4.onService();
349+
}
340350

341351
#if defined(__SAMD51__)
342352
void WIRE4_IT_HANDLER_0(void) { Wire4.onService(); }
@@ -349,7 +359,9 @@ void TwoWire::onService(void)
349359
#if WIRE_INTERFACES_COUNT > 5
350360
TwoWire Wire5(&PERIPH_WIRE5, PIN_WIRE5_SDA, PIN_WIRE5_SCL);
351361

352-
void WIRE5_IT_HANDLER(void) { Wire5.onService(); }
362+
void WIRE5_IT_HANDLER(void) {
363+
Wire5.onService();
364+
}
353365

354366
#if defined(__SAMD51__)
355367
void WIRE5_IT_HANDLER_0(void) { Wire5.onService(); }

0 commit comments

Comments
 (0)