A method for controlling an inverter configured to power supply a motor comprising a stator and a rotor adapted to be driven in rotation relative to the stator when the motor is power supplied, the inverter comprising a plurality of switches (30A, 32A, 34A, 30B, 32B, 34B) suitable for being controlled to open/close in order to regulate the power supply of the motor, each switch (30A, 32A, 34A, 30B, 32B, 34B) having a predetermined time of transition from a closed state to an open state (Toff), and a predetermined time of transition from the open state to the predetermined closed state (Ton), the method comprising the following steps of: - generating a first DC digital signal having a first voltage level suitable for controlling the closing of a switch, - generating a second DC digital signal having a second voltage level suitable for controlling the opening of a switch, - generating a third cyclic digital signal alternating between the first voltage level and the second voltage level, suitable for controlling successively the opening and the closing of a switch (30A, 32A, 34A, 30B, 32B, 34B), - transmitting to each switch (30A, 32A, 34A, 30B, 32B, 34B) one of the digital signals (S, S0, S1), in accordance with a control law based on a position of the rotor relative to the stator; characterized in that: - during a change in the position of the rotor relative to the stator at an instant t0, delaying the execution of the control law corresponding to the new position of the rotor, from the instant t0, as long as said execution would produce a command to open one of the switches (30A, 32A, 34A, 30B, 32B, 34B) during a transition from the open state to the closed state (Ton violation) of the switch (30A, 32A, 34A, 30B, 32B, 34B), or a command to close one of the switches (30A, 32A, 34A, 30B, 32B, 34B) during a transition from the closed state to the open state (Toff violation) of the switch (30A, 32A, 34A, 30B, 32B, 34B). - generating a first DC digital signal having a first voltage level suitable for controlling the closing of a switch, - generating a second DC digital signal having a second voltage level suitable for controlling the opening of a switch, - generating a third cyclic digital signal alternating between the first voltage level and the second voltage level, suitable for controlling successively the opening and the closing of a switch (30A, 32A, 34A, 30B, 32B, 34B), - transmitting to each switch (30A, 32A, 34A, 30B, 32B, 34B) one of the digital signals (S, S0, S1), in accordance with a control law based on a position of the rotor relative to the stator; characterized in that: - during a change in the position of the rotor relative to the stator at an instant t0, delaying the execution of the control law corresponding to the new position of the rotor, from the instant t0, as long as said execution would produce a command to open one of the switches (30A, 32A, 34A, 30B, 32B, 34B) during a transition from the open state to the closed state (Ton violation) of the switch (30A, 32A, 34A, 30B, 32B, 34B), or a command to close one of the switches (30A, 32A, 34A, 30B, 32B, 34B) during a transition from the closed state to the open state (Toff violation) of the switch (30A, 32A, 34A, 30B, 32B, 34B).