Skip to content

Commit dd6dfeb

Browse files
committed
Squeeze pyruler zh_Latn_pinyin
1 parent 778a7a7 commit dd6dfeb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ports/atmel-samd/boards/pyruler/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ LONGINT_IMPL = NONE
1212
CIRCUITPY_SMALL_BUILD = 1
1313

1414
SUPEROPT_GC = 0
15+
16+
ifeq ($(TRANSLATION), zh_Latn_pinyin)
17+
CFLAGS_INLINE_LIMIT = 35
18+
endif

ports/cxd56/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void common_hal_busio_uart_set_baudrate(busio_uart_obj_t *self, uint32_t baudrat
173173
}
174174

175175
mp_float_t common_hal_busio_uart_get_timeout(busio_uart_obj_t *self) {
176-
return (mp_float_t) (self->timeout / 1000000.0f);
176+
return (mp_float_t) (self->timeout_us / 1000000.0f);
177177
}
178178

179179
void common_hal_busio_uart_set_timeout(busio_uart_obj_t *self, mp_float_t timeout) {

shared-bindings/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ extern const busio_uart_parity_obj_t busio_uart_parity_odd_obj;
7171

7272
STATIC void validate_timeout(mp_float_t timeout) {
7373
if (timeout < (mp_float_t) 0.0f || timeout > (mp_float_t) 100.0f) {
74-
mp_raise_ValueError(translate("timeout must be 0.0-100.0 (units are now seconds, not msecs)"));
74+
mp_raise_ValueError(translate("timeout must be 0.0-100.0"));
7575
}
7676
}
7777

0 commit comments

Comments
 (0)