Home invasion charge dropped, defendant gets five years on weapons count