Skip to content

Commit d4840cb

Browse files
committed
translate() messages must be one string
1 parent 9083ae0 commit d4840cb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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/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)