# SV06 - bed leveling temperature override print temperature if G29 called in start gcode

**URL:** <https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081>\
**Category:** Sovol SV06 Fully Open Source 3D Printer\
**Created:** [December 21, 2022, 7:09pm UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081 "2022-12-21T19:09:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingr](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pingr](https://forum.sovol3d.com/u/pingr)\
**Post date:** [December 21, 2022, 7:09pm UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081/1 "2022-12-21T19:09:03Z")

</div>

when printing using octoprint, G29 in start gcode changes temp to bed leveling temps (120/60). So, if i preheat the bed to 80C, when G29 is called, bed drops to 60C for the bed level and stays there for the print unless i add another reheat in the start gcode.

i see there are a lot of temperature calls in menu\_bed\_leveling.cpp. can a “if temperature is greater than leveling temp, do not change temp” be added?

thank you

---

<div class="post-metadata">

**Author:** ![pingr](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pingr](https://forum.sovol3d.com/u/pingr)\
**Post date:** [December 23, 2022, 1:15am UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081/2 "2022-12-23T01:15:16Z")

</div>

not sure how to edit, but i found the true cause of the issue.

see this issue from marlin. probe.cpp needs some tweaks.

> <https://github.com/MarlinFirmware/Marlin/pull/21033>
>
> \### Description
> 
> Only set nozzle & bed temperature for probe/level preheat hig…her, never lower.
> 
> \### Requirements
> 
> \`PREHEAT\_BEFORE\_LEVELING\` or \`PREHEAT\_BEFORE\_PROBING\` enabled
> 
> \### Benefits
> 
> Prevents temperature being lowered during a preheat for probing/levelling.
> 
> \### Configurations
> 
> \[Archive.zip\](https://github.com/MarlinFirmware/Marlin/files/5953092/Archive.zip)
> 
> \### Related Issues
> 
> Fixes https://github.com/MarlinFirmware/Marlin/issues/21030
> 
> \-- Note, this is my first contribution, I tried to follow the contributing guidelines but if I made any mistakes do let me know!
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![Timpraetor](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.sovol3d.com/timpraetor/32/268_2.png) [@Timpraetor](https://forum.sovol3d.com/u/Timpraetor)\
**Post date:** [December 23, 2022, 2:39am UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081/3 "2022-12-23T02:39:30Z")

</div>

Unless you wish to run a one-off firmware version, this is something that the Sovol team would need to push into their branch.

Since this is new stuff to me, shouldn’t the print portion of the gcode be setting the nozzle and bed temperatures AFTER any leveling?

---

<div class="post-metadata">

**Author:** ![pingr](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pingr](https://forum.sovol3d.com/u/pingr)\
**Post date:** [December 23, 2022, 2:57am UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081/4 "2022-12-23T02:57:19Z")

</div>

Yeah, they’d have to fix their firmware.

---

<div class="post-metadata">

**Author:** ![Timpraetor](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.sovol3d.com/timpraetor/32/268_2.png) [@Timpraetor](https://forum.sovol3d.com/u/Timpraetor)\
**Post date:** [December 23, 2022, 3:59pm UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081/5 "2022-12-23T15:59:58Z")

</div>

I read more of the notes and see that the confusion seems to just be over a constant name and a difference of opinions as to what it SHOULD mean … coders 🙂

---

<div class="post-metadata">

**Author:** ![pingr](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pingr](https://forum.sovol3d.com/u/pingr)\
**Post date:** [December 23, 2022, 4:12pm UTC](https://forum.sovol3d.com/t/sv06-bed-leveling-temperature-override-print-temperature-if-g29-called-in-start-gcode/1081/6 "2022-12-23T16:12:31Z")

</div>

yep, i made a pr to cover commenting out “PREHEAT\_BEFORE\_LEVELING”

> <https://github.com/Sovol3d/Sv06-Source-Code/pull/1>
>
> \### Description
> 
> G29/G28 in the lcd menu where missing "PREHEAT\_BEFORE\_LEVELIN…G" #if statements. If one was to comment out "PREHEAT\_BEFORE\_LEVELING" in Configuration.h, build would fail. 
> 
> \### Requirements
> 
> \### Benefits
> 
> With the #if statements added, one can now comment out "PREHEAT\_BEFORE\_LEVELING" in configuration.h
> 
> \### Configurations
> 
> 
> \### Related Issues
