Merge pull request #7723 from dhalbert/misc-fixes
Doc fixes and translate fixes
This commit is contained in:
commit
f708048d8e
@ -79,8 +79,7 @@ void common_hal_espcamera_camera_construct(
|
||||
|
||||
if (common_hal_espidf_get_reserved_psram() == 0) {
|
||||
mp_raise_msg(&mp_type_MemoryError, translate(
|
||||
"espcamera.Camera requires reserved PSRAM to be configured. "
|
||||
"See the documentation for instructions."));
|
||||
"espcamera.Camera requires reserved PSRAM to be configured. See the documentation for instructions."));
|
||||
}
|
||||
for (int i = 0; i < 8; i++) {
|
||||
claim_pin_number(data_pins[i]);
|
||||
|
@ -45,7 +45,7 @@ mp_obj_t MP_WEAK rtc_get_time_source_time(void) {
|
||||
//| """Trigger an alarm when the specified time is reached."""
|
||||
//|
|
||||
//| def __init__(
|
||||
//| self, monotonic_time: Optional[float] = None, epoch_time: Optional[int] = None
|
||||
//| self, *, monotonic_time: Optional[float] = None, epoch_time: Optional[int] = None
|
||||
//| ) -> None:
|
||||
//| """Create an alarm that will be triggered when `time.monotonic()` would equal
|
||||
//| ``monotonic_time``, or when `time.time()` would equal ``epoch_time``.
|
||||
|
@ -271,8 +271,7 @@ STATIC mp_obj_t pwmio_pwmout_obj_set_frequency(mp_obj_t self_in, mp_obj_t freque
|
||||
check_for_deinit(self);
|
||||
if (!common_hal_pwmio_pwmout_get_variable_frequency(self)) {
|
||||
mp_raise_AttributeError(translate(
|
||||
"PWM frequency not writable when variable_frequency is False on "
|
||||
"construction."));
|
||||
"PWM frequency not writable when variable_frequency is False on construction."));
|
||||
}
|
||||
mp_int_t freq = mp_obj_get_int(frequency);
|
||||
if (freq == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user