Commit 8bc081e4 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 膜左右空气数据,按【计算】 时, 会变为负数。 正常应该为0

parent 99db2932
......@@ -369,7 +369,10 @@ namespace FLY.FilmCasting.AutoDie.Server
int[] offsets = new int[ChannelCnt];
for (int i = 0; i < ChannelCnt; i++)
{
offsets[i] = (int)Math.Round(thickpercents[i] * Kp);
if (double.IsNaN(thickpercents[i]))
offsets[i] = 0;
else
offsets[i] = (int)Math.Round(thickpercents[i] * Kp);
}
Offsets = offsets;
UpdatePreHeats();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment