From b65a22b32aede33356cf85f8257c09f12ed9a4b6 Mon Sep 17 00:00:00 2001 From: Jan Breuer Date: Wed, 9 Mar 2016 20:55:08 +0100 Subject: [PATCH] LwipMibCompiler: Don't preserve upper case on generated variables --- .../snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpMib.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpMib.cs b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpMib.cs index f113b242..477a18b6 100644 --- a/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpMib.cs +++ b/src/apps/snmp/LwipMibCompiler/LwipSnmpCodeGeneration/SnmpMib.cs @@ -90,8 +90,8 @@ namespace LwipSnmpCodeGeneration VariableDeclaration GetExportDeclaration() { return new VariableDeclaration( - new VariableType(this.Name, LwipDefs.Vt_StMib, null, ConstType.Value), - String.Format("{{{0}_base_oid, LWIP_ARRAYSIZE({0}_base_oid), &{1}.node}}", this.Name, this.FullNodeName)); + new VariableType(this.Name.ToLowerInvariant(), LwipDefs.Vt_StMib, null, ConstType.Value), + String.Format("{{{0}_base_oid, LWIP_ARRAYSIZE({0}_base_oid), &{1}.node}}", this.Name.ToLowerInvariant(), this.FullNodeName)); } } }