Fix warning in GUIapp (no functional)
[usb-relay-hid.git] / windows-vs / VS_GUI_demo / GUIapp.cpp
index 5c299755d8fe1619ddbde41efb5bfb01430e39a9..6b1b1b0f719000ff0efb5ea7e2cae16e7d3bcc54 100644 (file)
@@ -93,7 +93,7 @@ void Form1::buttonOpen_Click(System::Object^  sender, System::EventArgs^  e)
       if ( r != 0 ) {
          setMsg("Error reading device state", true);
       } else {
-          for (int i = 0; i < MaxRelaysNum; i++ ) {
+          for (i = 0; i < MaxRelaysNum; i++ ) {
             System::Windows::Forms::TextBox^ t;
             t = static_cast<System::Windows::Forms::TextBox^>(aIndicators->GetValue(i));
             Drawing::Color c = st & (1 << i) ? GREEN : RED;