Skip to content

Commit e2a0eb8

Browse files
committed
zephyrCommon: apply Arduino-style indentation
Reformatting indentation for `delay` and `millis`. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 22ae8fc commit e2a0eb8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cores/arduino/zephyrCommon.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ void noTone(pin_size_t pinNumber) {
257257
gpio_pin_set_dt(&arduino_pins[pinNumber], 0);
258258
}
259259

260-
void delay(unsigned long ms) { k_sleep(K_MSEC(ms)); }
260+
void delay(unsigned long ms) {
261+
k_sleep(K_MSEC(ms));
262+
}
261263

262264
void delayMicroseconds(unsigned int us) {
263265
k_busy_wait(us);
@@ -267,7 +269,9 @@ unsigned long micros(void) {
267269
return k_cyc_to_us_floor32(k_cycle_get_32());
268270
}
269271

270-
unsigned long millis(void) { return k_uptime_get_32(); }
272+
unsigned long millis(void) {
273+
return k_uptime_get_32();
274+
}
271275

272276
#ifdef CONFIG_PWM
273277

0 commit comments

Comments
 (0)