mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
all: Fix spelling mistakes based on codespell check.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -277,8 +277,8 @@ static void dhcp_server_process(void *arg, struct udp_pcb *upcb, struct pbuf *p,
|
||||
|
||||
opt_write_n(&opt, DHCP_OPT_SERVER_ID, 4, &d->ip.addr);
|
||||
opt_write_n(&opt, DHCP_OPT_SUBNET_MASK, 4, &d->nm.addr);
|
||||
opt_write_n(&opt, DHCP_OPT_ROUTER, 4, &d->ip.addr); // aka gateway; can have mulitple addresses
|
||||
opt_write_u32(&opt, DHCP_OPT_DNS, DEFAULT_DNS); // can have mulitple addresses
|
||||
opt_write_n(&opt, DHCP_OPT_ROUTER, 4, &d->ip.addr); // aka gateway; can have multiple addresses
|
||||
opt_write_u32(&opt, DHCP_OPT_DNS, DEFAULT_DNS); // can have multiple addresses
|
||||
opt_write_u32(&opt, DHCP_OPT_IP_LEASE_TIME, DEFAULT_LEASE_TIME_S);
|
||||
*opt++ = DHCP_OPT_END;
|
||||
dhcp_socket_sendto(&d->udp, &dhcp_msg, opt - (uint8_t *)&dhcp_msg, 0xffffffff, PORT_DHCP_CLIENT);
|
||||
|
||||
@@ -592,7 +592,7 @@ friendly_repl_reset:
|
||||
// If the user gets to here and interrupts are disabled then
|
||||
// they'll never see the prompt, traceback etc. The USB REPL needs
|
||||
// interrupts to be enabled or no transfers occur. So we try to
|
||||
// do the user a favor and reenable interrupts.
|
||||
// do the user a favor and re-enable interrupts.
|
||||
if (query_irq() == IRQ_STATE_DISABLED) {
|
||||
enable_irq(IRQ_STATE_ENABLED);
|
||||
mp_hal_stdout_tx_str("MPY: enabling IRQs\r\n");
|
||||
|
||||
@@ -41,7 +41,7 @@ STATIC soft_timer_entry_t *soft_timer_heap;
|
||||
|
||||
static inline int32_t ticks_diff(uint32_t t1, uint32_t t0) {
|
||||
// t1 is after t0 (i.e. positive result) if there exists a uint32_t X <= INT_MAX
|
||||
// such that t0 + X = t1. Otherwise t1 is interepreted to be earlier than
|
||||
// such that t0 + X = t1. Otherwise t1 is interpreted to be earlier than
|
||||
// t0 (negative result).
|
||||
return t1 - t0;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#if MICROPY_HW_ENABLE_USBDEV
|
||||
|
||||
#ifndef NO_QSTR
|
||||
#include "tusb.h" // TinyUSB is not avaiable when running the string preprocessor
|
||||
#include "tusb.h" // TinyUSB is not available when running the string preprocessor
|
||||
#include "device/usbd.h"
|
||||
#include "device/usbd_pvt.h"
|
||||
#endif
|
||||
|
||||
@@ -60,7 +60,7 @@ bool upytest_is_failed(void) {
|
||||
}
|
||||
|
||||
// MP_PLAT_PRINT_STRN() should be redirected to this function.
|
||||
// It will pass-thru any content to mp_hal_stdout_tx_strn_cooked()
|
||||
// It will pass-through any content to mp_hal_stdout_tx_strn_cooked()
|
||||
// (the dfault value of MP_PLAT_PRINT_STRN), but will also match
|
||||
// it to the expected output as set by upytest_set_expected_output().
|
||||
// If mismatch happens, upytest_is_failed() returns true.
|
||||
|
||||
Reference in New Issue
Block a user