Skip to content

Commit

Permalink
Merge pull request #4708 from tonhuisman/bugfix/P037-dont-show-unsupp…
Browse files Browse the repository at this point in the history
…orted-formula-field

[P037] Remove unsupported Formula fields from settings
  • Loading branch information
TD-er authored Jun 22, 2023
2 parents ad7ffb1 + f3bb00f commit 9347ad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified docs/source/Plugin/P037_DeviceSetup_Initial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/_P037_MQTTImport.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// This task reads data from the MQTT Import input stream and saves the value

/**
* 2023-06-17, tonhuisman: Replace Device[].FormulaOption by Device[].DecimalsOnly option, as no (successful) PLUGIN_READ is done
* 2023-03-06, tonhuisman: Fix PLUGIN_INIT behavior to now always return success = true
* 2022-11-14, tonhuisman: Add support for selecting JSON sub-attributes, using the . notation, like main.sub (1 level only)
* 2022-11-02, tonhuisman: Enable plugin to generate events initially, like the plugin did before the mapping, filtering and json parsing
Expand Down Expand Up @@ -116,7 +117,7 @@ boolean Plugin_037(uint8_t function, struct EventStruct *event, String& string)
Device[deviceCount].Ports = 0;
Device[deviceCount].PullUpOption = false;
Device[deviceCount].InverseLogicOption = false;
Device[deviceCount].FormulaOption = true; // Need this in order to get the decimals option
Device[deviceCount].DecimalsOnly = true; // We only want to have the decimals option
Device[deviceCount].ValueCount = VARS_PER_TASK;
Device[deviceCount].SendDataOption = false;
Device[deviceCount].TimerOption = false;
Expand Down

0 comments on commit 9347ad1

Please sign in to comment.