@@ -161,6 +161,8 @@ namespace UAS_MES.Make
try
{
weight.Text = Regex.Replace(serialPort1.ReadLine(), "\\D+", "");
+ if (pr_colorboxunit.Text == "kg")
+ weight.Text = (float.Parse(weight.Text) / 1000).ToString();
}
catch (Exception)