dbus-sdr: set settable state to true if sensor write is enabled

Set the settable state for the sensors to true if
`FEATURE_DYNAMIC_SENSORS_WRITE` is enabled. This will help indicate that
the sensors are writable to the client tools.

Change-Id: I3b61cf5583e697820e28dce3a1d60ea2b08876c2
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/dbus-sdr/sensorcommands.cpp b/dbus-sdr/sensorcommands.cpp
index bda56df..a2a5b65 100644
--- a/dbus-sdr/sensorcommands.cpp
+++ b/dbus-sdr/sensorcommands.cpp
@@ -1618,6 +1618,11 @@
     // Remember the sensor name, as determined for this sensor number
     details::sdrStatsTable.updateName(sensornumber, name);
 
+#ifdef FEATURE_DYNAMIC_SENSORS_WRITE
+    // Set the sensor settable state to true by default
+    get_sdr::body::init_settable_state(true, &record.body);
+#endif
+
     IPMIThresholds thresholdData;
     try
     {