changed test button to load scans

This commit is contained in:
csawatzky 2025-06-24 11:01:37 -06:00
parent 2c3ba2c1f5
commit f5bc230fb6
3 changed files with 21 additions and 3 deletions

View file

@ -390,6 +390,8 @@ export default function DevicePage() {
refreshCallback={loadDevice}
/>
</Grid>
{/* add grid card here for I2C detected components */}
{diagnosticComponents.map(comp => (
<Grid size={{ xs: 12 }} key={comp.key()}>
<ComponentDiagnostics
@ -443,7 +445,8 @@ export default function DevicePage() {
<DeviceActions
device={device}
scanFunction={() => {
deviceAPI.detectI2C(device.id()).then(resp => {console.log("No errors")}).catch(err => {console.log("error")})
//deviceAPI.detectI2C(device.id()).then(resp => {console.log("No errors")}).catch(err => {console.log("error")})
deviceAPI.listFoundComponents(device.id()).then(resp => console.log(resp)).catch(err => {console.log("errors")})
}}
isPaused={false}
isLoading={loading}