Welcome! Log In Create A New Profile

Advanced

CPU Temperature Fix

Posted by DADIY 
CPU Temperature Fix
October 27, 2016 12:58PM
There appears to be a mismatch between DWC 1.12 and Firmware 1.15e/1.16 on git hub.

Basically, DWC is expecting to see in the firmware a cputemp and cputemp cur property but the firmware only sends these two properties for mcutemp and not cputemp. A quick fix for anyone who wants to restore the CPU temperature is to change /www/js/comm.js on their SD card to look at the mcutemp property. At line 315 update the code to look like this.

			if (status.hasOwnProperty("mcutemp") && status.mcutemp.hasOwnProperty("cur")) {
				$(".cpu-temp").removeClass("hidden");
				$("#td_cputemp").html(T("{0} °C", status.mcutemp.cur.toFixed(1)));
			}

@dc42 Would you be able to add the cur property to the cputemp in your firmware in a future release? This should then just work without needing any modifications to DWC.


DC42 Kossel 330mm x 2meters
My Thingiverse Creations
Re: CPU Temperature Fix
October 27, 2016 04:46PM
This is fixed in DWC 1.13 which is currently being tested. The cputemp variable is reported for backwards compatible with DWC 1.11 and will be removed in a future release.

Edited 1 time(s). Last edit at 10/27/2016 04:48PM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: CPU Temperature Fix
October 28, 2016 02:38AM
@dc42 - Great News. Thanks for the quick reply.


DC42 Kossel 330mm x 2meters
My Thingiverse Creations
Sorry, only registered users may post in this forum.

Click here to login