Benachrichtigungen
Alles löschen

[Geschlossen] Report Long Filename to Octoprint  

  RSS
harold.t
(@harold-t)
Eminent Member
Report Long Filename to Octoprint

I made a very simple firmware change to report the long filename to Octoprint for monitoring.  I start prints from the printer, but I use Octoprint and Octoslack to monitor, and the 8.3 filename was bugging me.

It's so simple it seems silly to even post the code, but here it is anyway:

Firmware/cardreader.cpp-      getfilename(0, fname);
Firmware/cardreader.cpp: SERIAL_PROTOCOLRPGM(_N("File opened: "));////MSG_SD_FILE_OPENED
Firmware/cardreader.cpp- //SERIAL_PROTOCOL(fname);
Firmware/cardreader.cpp- SERIAL_PROTOCOL(longFilename[0] ? longFilename : fname);
Veröffentlicht : 16/05/2020 1:27 pm
bobstro
(@bobstro)
Illustrious Member
RE: Report Long Filename to Octoprint

This is a great fix. Have you posted it to the Prusa github pages for incorporation into upcoming releases?

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Veröffentlicht : 16/05/2020 5:21 pm
harold.t
(@harold-t)
Eminent Member
Themenstarter answered:
RE: Report Long Filename to Octoprint

@bobstro

Not yet.  It would be my first time submitting something, so I'll have to look up how to do it, once I have time.

Veröffentlicht : 16/05/2020 5:41 pm
harold.t
(@harold-t)
Eminent Member
Themenstarter answered:
RE: Report Long Filename to Octoprint

OK, I figured it out, I think.

https://github.com/prusa3d/Prusa-Firmware/pull/2669

Veröffentlicht : 17/05/2020 10:57 am
Teilen: