A medication delivery device adapted to receive a medicament filled cartridge (10), the medication delivery device comprising dose setting means for enabling a user to set a desired dosage of medication to be dispensed, a motor An electronic controller (70, 270) adapted to move the drive member by controlling the drive member (51) to thereby eject an amount of medicament corresponding to the set dose from the received cartridge, And means for estimating the amount of free air. The controller is adapted to detect an error condition if the estimated amount of free air in the cartridge is greater than or equal to a given percentage of the amount of medication corresponding to the set dose.(FIG.薬剤で充填されたカートリッジ(10)を受け入れるように適合された薬剤送達装置であって、薬剤送達装置は、吐出すべき薬剤の望ましい用量をユーザが設定できるようにする用量設定手段と、モータ(51)を制御して駆動部材を移動させ、それにより、受け入れたカートリッジから、設定用量に対応する薬剤の量を吐出するように適合された電子コントローラ(70、270)と、装填されたカートリッジ内の自由空気の量を推定するための手段とを備える。コントローラは、カートリッジ内の自由空気の推定量が、設定用量に対応する薬剤の量の所与のパーセンテージ以上である場合、エラー状態を検出するように適合される。【選択図】図2