Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 61dbac2

Browse files
soburiDhruvaG2000
authored andcommitted
zephyrCommon: apply Arduino-style indentation
Reformatting indentation for `delay` and `millis`. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent daf1764 commit 61dbac2

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)

AltStyle によって変換されたページ (->オリジナル) /