Compiler Error with Board Definition in v1.7.1

I moved to a new computer and reinstalled all the tools and moved my code over. Now, when I compile, I get the following error:

'DT_N_S_soc_S_i2c_40003000_S_lis2dh_18_BUS_P_label' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_i2c_40003000_S_lis2dh_18_P_label'?

Here is the code from the board definition file:

    lis2dh@18 {
        compatible = "st,lis2dh";
        reg = <0x18>;
        irq-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>,
                        <&gpio0 31 GPIO_ACTIVE_HIGH>;
        disconnect-sdo-sa0-pull-up;
        label = "LIS2DH";
    };
Here is the main.c code:
const struct device *devMotion = device_get_binding(DT_LABEL(DT_INST(0, st_lis2dh)));
I'm not sure what I need to change to get the code to compile.

Related