Skip to content

Commit 426c51a

Browse files
erwangostephanosio
authored andcommitted
samples: shields: x_nucleo_53l0a1: Fix nodelabels
Following change of nodelabels names in shields, fix their usage in this sample. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
1 parent adf927c commit 426c51a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

samples/shields/x_nucleo_53l0a1/src/display_7seg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ const uint8_t DISPLAY_OFF[4] = { CHAR_OFF, CHAR_OFF, CHAR_OFF, CHAR_OFF };
1313
const uint8_t TEXT_Err[4] = { CHAR_E, CHAR_r, CHAR_r, CHAR_OFF };
1414

1515
static bool initialized;
16-
static const struct device *const expander1 = DEVICE_DT_GET(DT_NODELABEL(expander1));
17-
static const struct device *const expander2 = DEVICE_DT_GET(DT_NODELABEL(expander2));
16+
static const struct device *const expander1 =
17+
DEVICE_DT_GET(DT_NODELABEL(expander1_x_nucleo_53l0a1));
18+
static const struct device *const expander2 =
19+
DEVICE_DT_GET(DT_NODELABEL(expander2_x_nucleo_53l0a1));
1820
static const uint8_t digits[16] = {
1921
CHAR_0,
2022
CHAR_1,

samples/shields/x_nucleo_53l0a1/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ typedef void (*fsm_state)(void);
3030
static int64_t last_mode_change;
3131

3232
static const struct device *const sensors[] = {
33-
DEVICE_DT_GET(DT_NODELABEL(vl53l0x_l)),
34-
DEVICE_DT_GET(DT_NODELABEL(vl53l0x_c)),
35-
DEVICE_DT_GET(DT_NODELABEL(vl53l0x_r)),
33+
DEVICE_DT_GET(DT_NODELABEL(vl53l0x_l_x_nucleo_53l0a1)),
34+
DEVICE_DT_GET(DT_NODELABEL(vl53l0x_c_x_nucleo_53l0a1)),
35+
DEVICE_DT_GET(DT_NODELABEL(vl53l0x_r_x_nucleo_53l0a1)),
3636
};
3737

3838
static void mode_show_distance(void)

0 commit comments

Comments
 (0)