Skip to content

Commit a693bd7

Browse files
authored
Merge pull request #9683 from dhalbert/raspberrypi-os-uname
fix os.uname() values for rp2350
2 parents 11d4bce + 9432fb9 commit a693bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/raspberrypi/common-hal/os/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ static const qstr os_uname_info_fields[] = {
2222
MP_QSTR_sysname, MP_QSTR_nodename,
2323
MP_QSTR_release, MP_QSTR_version, MP_QSTR_machine
2424
};
25-
static const MP_DEFINE_STR_OBJ(os_uname_info_sysname_obj, "rp2040");
26-
static const MP_DEFINE_STR_OBJ(os_uname_info_nodename_obj, "rp2040");
25+
static const MP_DEFINE_STR_OBJ(os_uname_info_sysname_obj, MICROPY_HW_MCU_NAME);
26+
static const MP_DEFINE_STR_OBJ(os_uname_info_nodename_obj, MICROPY_HW_MCU_NAME);
2727
static const MP_DEFINE_STR_OBJ(os_uname_info_release_obj, MICROPY_VERSION_STRING);
2828
static const MP_DEFINE_STR_OBJ(os_uname_info_version_obj, MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE);
2929
static const MP_DEFINE_STR_OBJ(os_uname_info_machine_obj, MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME);

0 commit comments

Comments
 (0)