If a defendant is committed as mentally ill, the court shall exonerate his bail pursuant to § 23A-43-24.
SDCL 23A-43-28