Skip to content

Commit

Permalink
Fix sensor not displayed since reporting is in stream instead of core
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github committed Dec 17, 2024
1 parent f9dbf5c commit 8858149
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 3 deletions.
Binary file modified dist/CNC/GRBL/index.html.gz
Binary file not shown.
Binary file modified dist/CNC/GRBLHal/index.html.gz
Binary file not shown.
Binary file modified dist/Printer3D/Marlin-embedded/index.html.gz
Binary file not shown.
Binary file modified dist/Printer3D/Marlin/index.html.gz
Binary file not shown.
Binary file modified dist/Printer3D/Repetier/index.html.gz
Binary file not shown.
Binary file modified dist/Printer3D/Smoothieware/index.html.gz
Binary file not shown.
Binary file modified dist/SandTable/GRBL/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/App/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
import { h } from "preact"
import { webUIbuild } from "../../targets"
export const webUIversion = "3.0.0-a83"
export const webUIversion = "3.0.0-a84"
export const Esp3dVersion = () => (
<span>
{webUIversion}.{webUIbuild}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Panels/ExtraControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const ExtraInputControl = ({ element, index, size, pos }) => {
}

const ExtraControlsPanel = () => {
const { temperatures, fanSpeed, flowRate, feedRate } = useTargetContext()
const { temperatures, fanSpeed, flowRate, feedRate, sensor } = useTargetContext()
const id = "extraControlsPanel"
const inputList = [
{ name: "P91", list: fanSpeed },
Expand Down Expand Up @@ -346,7 +346,7 @@ const ExtraControlsPanel = () => {
})}
</div>
)}
{temperatures["T"].length == 0 && (
{temperatures["T"].length == 0 && (!sensor.S || sensor.S.length == 0) && (
<div class="loading-panel">
<div class="m-2">
<div class="m-1">{T("P89")}</div>
Expand Down
7 changes: 7 additions & 0 deletions src/targets/Printer3D/Marlin-embedded/TargetContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ const TargetContextProvider = ({ children }) => {
value: cap.value,
})
})
} else if (isSensor(data)) {
const result = getSensor(data)
setSensorData({ S: result })
add2SensorDataList({
temperatures: { S: result },
time: new Date(),
})
}
} else if (type === "core") {
if (isSensor(data)) {
Expand Down
7 changes: 7 additions & 0 deletions src/targets/Printer3D/Marlin/TargetContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ const TargetContextProvider = ({ children }) => {
value: cap.value,
})
})
} else if (isSensor(data)) {
const result = getSensor(data)
setSensorData({ S: result })
add2SensorDataList({
temperatures: { S: result },
time: new Date(),
})
}
} else if (type === "core") {
if (isSensor(data)) {
Expand Down
7 changes: 7 additions & 0 deletions src/targets/Printer3D/Repetier/TargetContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ const TargetContextProvider = ({ children }) => {
value: cap.value,
})
})
} else if (isSensor(data)) {
const result = getSensor(data)
setSensorData({ S: result })
add2SensorDataList({
temperatures: { S: result },
time: new Date(),
})
}
} else if (type === "core") {
if (isSensor(data)) {
Expand Down
7 changes: 7 additions & 0 deletions src/targets/Printer3D/Smoothieware/TargetContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ const TargetContextProvider = ({ children }) => {
})
})
//console.log(printerCapabilities)
} else if (isSensor(data)) {
const result = getSensor(data)
setSensorData({ S: result })
add2SensorDataList({
temperatures: { S: result },
time: new Date(),
})
}
} else if (type === "core") {
if (isSensor(data)) {
Expand Down

0 comments on commit 8858149

Please sign in to comment.