HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: petediscrete on January 05, 2016, 04:29:04 PM

Title: Security Alarm System compiler warning
Post by: petediscrete on January 05, 2016, 04:29:04 PM
While trying to configure my IP Camera as a motion detect sensor I noticed this complier warning in the Security Alarm system

TC,15,13: `HomeGenie.Automation.Scripting.ProgramHelper.AddInputField(string, string, string)' is obsolete: `use 'Program.AddOption(<field>, <defaultValue>, <description>, <type>)' instead'

I didnt make any changes to the Security Alarm System so I'm curious to know why this is appearing.
Title: Re: Security Alarm System complier warning
Post by: bkenobi on January 05, 2016, 07:08:38 PM
This is a standard warning indicating that the "AddInputField" function is old and should be replaced with the "AddOption" function.  It currently works either way but at some point I assume Gene will fully deprecate the old function call.  You can leave it for now or update to the new function.
Title: Re: Security Alarm System complier warning
Post by: petediscrete on January 05, 2016, 09:57:27 PM
As long as it doesn't cause me a problem I've no issue there.