I would argue that the intent was to protect militia weapons, but the wording of the second amendment protects all weapons.
To say nothing of the fact that at the time many weapons served dual use - hunting and defense around the home, militia use when needed.