There are 2 kinds of power outage recovery methods that PandaPi can support. but the firmware of marlin needs to change that I am still in debuging.
1, Continue after Power-Loss like all the Creality3D printer.
Store the current state to the SD Card at the start of each layer
during SD printing. If the recovery file is found at boot time, present
an option on the LCD screen to continue the print from the last-known point in the file.the biggest disadvantage is that it short the life of the sd card.
2.with Li-ion Battery HAT, the printer can store the power outage information when power outage,and this battery can let the pi continue work about 50min. https://www.waveshare.com/li-ion-battery-hat.htm