The invention provides a control method of a
lithium-
ion nail gun, in a normal working state, a brushless motor of the
lithium-
ion nail gun continuously rotates forwards, a
ratchet wheel drives a reduction gear to rotate forwards, a first limiting column and a second limiting column sequentially abut against a limiting block in the rotating process, a hammer block is continuously pushed to move backwards, and a spring is driven to be compressed; when the second limiting column is separated from the limiting block, the spring returns, the nail is ejected, and the brushless motor rotates to return to the initial position; when the
lithium-
ion nail gun is interrupted in work and restarted, the control method comprises the following steps: firstly trying to drive the brushless motor to rotate forwards, if the brushless motor cannot rotate forwards, reversing to rotate reversely, so that the hammer block and the
firing pin slightly retreat until the hammer block and the
firing pin retreat for a preset distance or retreat to an initial working position, stopping retreating, and controlling the brushless motor to rotate forwards, so that the lithium-ion nail gun recovers normal work.