Skip to content

Commit

Permalink
Add FIM-E
Browse files Browse the repository at this point in the history
  • Loading branch information
barnhill committed Oct 18, 2023
1 parent 8695a4e commit 356aae8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions BarcodeStandard/Symbologies/FIM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace BarcodeLib.Symbologies
/// </summary>
class FIM: BarcodeCommon, IBarcode
{
private readonly string[] FIM_Codes = { "110010011", "101101101", "110101011", "111010111" };
public enum FIMTypes {FIM_A = 0, FIM_B, FIM_C, FIM_D};
private readonly string[] FIM_Codes = { "110010011", "101101101", "110101011", "111010111", "101000101" };
public enum FIMTypes {FIM_A = 0, FIM_B, FIM_C, FIM_D, FIM_E};

public FIM(string input)
{
Expand All @@ -29,7 +29,10 @@ public FIM(string input)
case "D":
case "d": RawData = FIM_Codes[(int)FIMTypes.FIM_D];
break;
default: Error("EFIM-1: Could not determine encoding type. (Only pass in A, B, C, or D)");
case "E":
case "e": RawData = FIM_Codes[(int)FIMTypes.FIM_E];
break;
default: Error("EFIM-1: Could not determine encoding type. (Only pass in A, B, C, D, or E)");
break;
}//switch
}
Expand Down

0 comments on commit 356aae8

Please sign in to comment.