]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kern-scale/protocol.c
hantek-4032l: Fix a compiler warning.
[libsigrok.git] / src / hardware / kern-scale / protocol.c
index 01838e3d55da75bbe230a9e20dfe733a729e0ac2..5d3541df46d7414a04d2984f64deff2c65794cd1 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <config.h>
@@ -43,6 +42,7 @@ static void handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi,
 
        devc = sdi->priv;
 
+       /* Note: digits/spec_digits will be overridden later. */
        sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
 
        analog.meaning->channels = sdi->channels;
@@ -125,7 +125,7 @@ SR_PRIV int kern_scale_receive_data(int fd, int revents, void *cb_data)
        }
 
        if (sr_sw_limits_check(&devc->limits))
-               sdi->driver->dev_acquisition_stop(sdi);
+               sr_dev_acquisition_stop(sdi);
 
        return TRUE;
 }