Skip to content

Commit

Permalink
fix #184
Browse files Browse the repository at this point in the history
  • Loading branch information
arkypita committed Nov 28, 2017
1 parent dd566fa commit f315f9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LaserGRBL/AssemblyInfo.cs
Expand Up @@ -31,5 +31,5 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// utilizzando l'asterisco (*) come descritto di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion ("2.8.22")]
[assembly: AssemblyVersion ("2.8.23")]
[assembly: NeutralResourcesLanguageAttribute("en")]
13 changes: 12 additions & 1 deletion LaserGRBL/GrblCore.cs
Expand Up @@ -1905,6 +1905,9 @@ private bool Version11
private bool Version9
{ get { return mVersion != null && mVersion >= new GrblCore.GrblVersionInfo(0, 9); } }

private bool NoVersionInfo
{ get { return mVersion == null; } }

public int ExpectedCount
{ get { return Version11 ? 34 : Version9 ? 31 : 23; } }

Expand All @@ -1918,7 +1921,15 @@ public decimal MaxRateY
{ get { return ReadWithDefault(Version9 ? 111 : 5, 4000); } }

public bool LaserMode
{ get { return ReadWithDefault(Version11 ? 32 : -1, 0) != 0; } }
{
get
{
if (NoVersionInfo)
return true;
else
return ReadWithDefault(Version11 ? 32 : -1, 0) != 0;
}
}

public decimal MinPWM
{ get { return ReadWithDefault(Version11 ? 31 : -1, 0); } }
Expand Down

0 comments on commit f315f9e

Please sign in to comment.