Welcome! Log In Create A New Profile

Advanced

marlin gen7 power question

Posted by cae2100 
marlin gen7 power question
February 27, 2014 10:25AM
Hi, Ive been using a gen7 board, ATX connector method, and every firmware except teacup turns the psu on by default at startup, is there any way to prevent it from powering it up on start? Im using marlin atm, and everything works fine, it's just that little issue that's been annoying me a little.

Ive been looking around google and these forums for close to a week now, and havnt found anything that prevents it from starting everything up.

Edited 1 time(s). Last edit at 02/27/2014 10:26AM by cae2100.
Re: marlin gen7 power question
February 28, 2014 09:10PM
ok, I finally figured it out after looking through every line of code in the marlin firmware, lol. The answer is in the subroutine "setup_powerhold()" inside of the Marlin_main.cpp file. Look for the second IF statment in that subroutine, this one:

#if defined(PS_ON_PIN) && PS_ON_PIN > -1
    SET_OUTPUT(PS_ON_PIN);
    WRITE(PS_ON_PIN, PS_ON_AWAKE);
  #endif

Just change the PS_ON_AWAKE part to PS_ON_ASLEEP, then save it, compile, and upload the firmware to your printer, then it'll no longer kick the psu on when it first boots up.

I figured I'd post this here in case anyone is curious about how to get it fixed also.

Edited 2 time(s). Last edit at 02/28/2014 09:17PM by cae2100.
Sorry, only registered users may post in this forum.

Click here to login