Corrected WP to Polarity which was always setting to Normal.

This commit is contained in:
skarg
2010-02-18 15:33:24 +00:00
parent 9c9e4b9603
commit edd190159d
+1 -1
View File
@@ -225,7 +225,7 @@ void Binary_Output_Polarity_Set(
{ {
if (instance < MAX_BINARY_OUTPUTS) { if (instance < MAX_BINARY_OUTPUTS) {
if (polarity < MAX_POLARITY) { if (polarity < MAX_POLARITY) {
Polarity[instance] = POLARITY_NORMAL; Polarity[instance] = polarity;
seeprom_bytes_write(NV_SEEPROM_BINARY_OUTPUT(instance, seeprom_bytes_write(NV_SEEPROM_BINARY_OUTPUT(instance,
NV_SEEPROM_BO_POLARITY), &Polarity[instance], 1); NV_SEEPROM_BO_POLARITY), &Polarity[instance], 1);
} }