Skip to content

Commit eddb875

Browse files
committed
【修改】细节错误改动
Signed-off-by: chenyong <[email protected]>
1 parent 4463ef3 commit eddb875

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples/stm32l4_pandora/wdt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
wdt = WDT(10) # Create an WDT device object, set the timeout to 10 seconds
1414
wdt.feed() # Perform the "feed dog" operation to clear the watchdog device count during the timout period
1515
# If not executed, the system will restart after the timeout
16-
print("reset system after 10 seconds")
16+
print("reset system after 10 seconds")

port/machine_pwm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ STATIC void machine_pwm_print(const mp_print_t *print, mp_obj_t self_in, mp_prin
5858
machine_pwm_obj_t *self = self_in;
5959

6060
mp_printf(print, "PWM(%p; ", self);
61-
6261
mp_printf(print, "id=%d, ", self->id);
6362
mp_printf(print, "channel=%d, ", self->channel);
6463
mp_printf(print, "freq=%d, ", self->freq);
6564
mp_printf(print, "duty=%d)", self->duty);
6665
}
6766

68-
6967
STATIC void error_check(bool status, const char *msg) {
7068
if (!status) {
7169
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, msg));

0 commit comments

Comments
 (0)