@@ -83,7 +83,7 @@ impl Adc {
8383
8484 let adc = Self {
8585 usb_host_curr : AdcChannel {
86- fast : stm32_thread. clone ( ) . get_channel ( "usb-host-curr" ) . unwrap ( ) ,
86+ fast : stm32_thread. clone ( ) . get_channel ( "usb-host-curr" ) ? ,
8787 topic : bb. topic (
8888 "/v1/usb/host/total/feedback/current" ,
8989 true ,
@@ -94,7 +94,7 @@ impl Adc {
9494 ) ,
9595 } ,
9696 usb_host1_curr : AdcChannel {
97- fast : stm32_thread. clone ( ) . get_channel ( "usb-host1-curr" ) . unwrap ( ) ,
97+ fast : stm32_thread. clone ( ) . get_channel ( "usb-host1-curr" ) ? ,
9898 topic : bb. topic (
9999 "/v1/usb/host/port1/feedback/current" ,
100100 true ,
@@ -105,7 +105,7 @@ impl Adc {
105105 ) ,
106106 } ,
107107 usb_host2_curr : AdcChannel {
108- fast : stm32_thread. clone ( ) . get_channel ( "usb-host2-curr" ) . unwrap ( ) ,
108+ fast : stm32_thread. clone ( ) . get_channel ( "usb-host2-curr" ) ? ,
109109 topic : bb. topic (
110110 "/v1/usb/host/port2/feedback/current" ,
111111 true ,
@@ -116,7 +116,7 @@ impl Adc {
116116 ) ,
117117 } ,
118118 usb_host3_curr : AdcChannel {
119- fast : stm32_thread. clone ( ) . get_channel ( "usb-host3-curr" ) . unwrap ( ) ,
119+ fast : stm32_thread. clone ( ) . get_channel ( "usb-host3-curr" ) ? ,
120120 topic : bb. topic (
121121 "/v1/usb/host/port3/feedback/current" ,
122122 true ,
@@ -127,7 +127,7 @@ impl Adc {
127127 ) ,
128128 } ,
129129 out0_volt : AdcChannel {
130- fast : stm32_thread. clone ( ) . get_channel ( "out0-volt" ) . unwrap ( ) ,
130+ fast : stm32_thread. clone ( ) . get_channel ( "out0-volt" ) ? ,
131131 topic : bb. topic (
132132 "/v1/output/out_0/feedback/voltage" ,
133133 true ,
@@ -138,7 +138,7 @@ impl Adc {
138138 ) ,
139139 } ,
140140 out1_volt : AdcChannel {
141- fast : stm32_thread. clone ( ) . get_channel ( "out1-volt" ) . unwrap ( ) ,
141+ fast : stm32_thread. clone ( ) . get_channel ( "out1-volt" ) ? ,
142142 topic : bb. topic (
143143 "/v1/output/out_1/feedback/voltage" ,
144144 true ,
@@ -149,7 +149,7 @@ impl Adc {
149149 ) ,
150150 } ,
151151 iobus_curr : AdcChannel {
152- fast : stm32_thread. clone ( ) . get_channel ( "iobus-curr" ) . unwrap ( ) ,
152+ fast : stm32_thread. clone ( ) . get_channel ( "iobus-curr" ) ? ,
153153 topic : bb. topic (
154154 "/v1/iobus/feedback/current" ,
155155 true ,
@@ -160,7 +160,7 @@ impl Adc {
160160 ) ,
161161 } ,
162162 iobus_volt : AdcChannel {
163- fast : stm32_thread. clone ( ) . get_channel ( "iobus-volt" ) . unwrap ( ) ,
163+ fast : stm32_thread. clone ( ) . get_channel ( "iobus-volt" ) ? ,
164164 topic : bb. topic (
165165 "/v1/iobus/feedback/voltage" ,
166166 true ,
@@ -171,7 +171,7 @@ impl Adc {
171171 ) ,
172172 } ,
173173 pwr_volt : AdcChannel {
174- fast : powerboard_thread. clone ( ) . get_channel ( "pwr-volt" ) . unwrap ( ) ,
174+ fast : powerboard_thread. clone ( ) . get_channel ( "pwr-volt" ) ? ,
175175 topic : bb. topic (
176176 "/v1/dut/feedback/voltage" ,
177177 true ,
@@ -182,7 +182,7 @@ impl Adc {
182182 ) ,
183183 } ,
184184 pwr_curr : AdcChannel {
185- fast : powerboard_thread. get_channel ( "pwr-curr" ) . unwrap ( ) ,
185+ fast : powerboard_thread. get_channel ( "pwr-curr" ) ? ,
186186 topic : bb. topic (
187187 "/v1/dut/feedback/current" ,
188188 true ,
0 commit comments