Skip to content

Commit 1a81717

Browse files
committed
fixing build errors
1 parent 816d1e3 commit 1a81717

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FprimeZephyrReference/ReferenceDeployment/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include <zephyr/kernel.h>
1111
#include <zephyr/sys/printk.h>
1212

13-
const struct device* ina219Sys = DEVICE_DT_GET(DT_NODELABEL(ina219Sys));
14-
const struct device* ina219Sol = DEVICE_DT_GET(DT_NODELABEL(ina219Sol));
13+
const struct device* ina219Sys = device_get_binding("INA219 sys");
14+
const struct device* ina219Sol = device_get_binding("INA219 sol");
1515
const struct device* serial = DEVICE_DT_GET(DT_NODELABEL(cdc_acm_uart0));
1616
const struct device* lora = DEVICE_DT_GET(DT_NODELABEL(lora0));
1717

boards/bronco_space/proves_flight_control_board_v5/proves_flight_control_board_v5.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ zephyr_udc0: &usbd {
159159
backup-switch-mode = "direct";
160160
label = "RV3028";
161161
};
162-
ina219Sys: ina219Sys {
162+
ina219Sys: ina219Sys@40 {
163163
compatible = "ti,ina219";
164164
reg = <0x40>;
165165
shunt-milliohm = <2>;
166166
lsb-microamp = <100>;
167167
label = "INA219 sys";
168168
};
169-
ina219Sol: ina219Sol {
169+
ina219Sol: ina219Sol@41 {
170170
compatible = "ti,ina219";
171171
reg = <0x41>;
172172
shunt-milliohm = <2>;

0 commit comments

Comments
 (0)