Skip to content

Commit f708048

Browse files
authored
Merge pull request #7723 from dhalbert/misc-fixes
Doc fixes and translate fixes
2 parents 9083ae0 + 5ec5860 commit f708048

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

ports/espressif/common-hal/espcamera/Camera.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ void common_hal_espcamera_camera_construct(
7979

8080
if (common_hal_espidf_get_reserved_psram() == 0) {
8181
mp_raise_msg(&mp_type_MemoryError, translate(
82-
"espcamera.Camera requires reserved PSRAM to be configured. "
83-
"See the documentation for instructions."));
82+
"espcamera.Camera requires reserved PSRAM to be configured. See the documentation for instructions."));
8483
}
8584
for (int i = 0; i < 8; i++) {
8685
claim_pin_number(data_pins[i]);

shared-bindings/alarm/time/TimeAlarm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ mp_obj_t MP_WEAK rtc_get_time_source_time(void) {
4545
//| """Trigger an alarm when the specified time is reached."""
4646
//|
4747
//| def __init__(
48-
//| self, monotonic_time: Optional[float] = None, epoch_time: Optional[int] = None
48+
//| self, *, monotonic_time: Optional[float] = None, epoch_time: Optional[int] = None
4949
//| ) -> None:
5050
//| """Create an alarm that will be triggered when `time.monotonic()` would equal
5151
//| ``monotonic_time``, or when `time.time()` would equal ``epoch_time``.

shared-bindings/pwmio/PWMOut.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ STATIC mp_obj_t pwmio_pwmout_obj_set_frequency(mp_obj_t self_in, mp_obj_t freque
271271
check_for_deinit(self);
272272
if (!common_hal_pwmio_pwmout_get_variable_frequency(self)) {
273273
mp_raise_AttributeError(translate(
274-
"PWM frequency not writable when variable_frequency is False on "
275-
"construction."));
274+
"PWM frequency not writable when variable_frequency is False on construction."));
276275
}
277276
mp_int_t freq = mp_obj_get_int(frequency);
278277
if (freq == 0) {

0 commit comments

Comments
 (0)