Squeeze pyruler zh_Latn_pinyin

This commit is contained in:
Dan Halbert 2019-11-27 14:47:35 -05:00
parent 778a7a73e5
commit dd6dfeb30a
3 changed files with 6 additions and 2 deletions

View File

@ -12,3 +12,7 @@ LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1
SUPEROPT_GC = 0
ifeq ($(TRANSLATION), zh_Latn_pinyin)
CFLAGS_INLINE_LIMIT = 35
endif

View File

@ -173,7 +173,7 @@ void common_hal_busio_uart_set_baudrate(busio_uart_obj_t *self, uint32_t baudrat
}
mp_float_t common_hal_busio_uart_get_timeout(busio_uart_obj_t *self) {
return (mp_float_t) (self->timeout / 1000000.0f);
return (mp_float_t) (self->timeout_us / 1000000.0f);
}
void common_hal_busio_uart_set_timeout(busio_uart_obj_t *self, mp_float_t timeout) {

View File

@ -71,7 +71,7 @@ extern const busio_uart_parity_obj_t busio_uart_parity_odd_obj;
STATIC void validate_timeout(mp_float_t timeout) {
if (timeout < (mp_float_t) 0.0f || timeout > (mp_float_t) 100.0f) {
mp_raise_ValueError(translate("timeout must be 0.0-100.0 (units are now seconds, not msecs)"));
mp_raise_ValueError(translate("timeout must be 0.0-100.0"));
}
}