]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/demo/api.c
lecroy-xstream: Use sr_period_string()
[libsigrok.git] / src / hardware / demo / api.c
index 141b69d53604862eccbe153410e8d1273ea66549..c6c27e3c0b8b7fb619b2224fc69eba6646ed403d 100644 (file)
@@ -17,8 +17,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>
@@ -473,6 +472,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
        /* We use this timestamp to decide how many more samples to send. */
        devc->start_us = g_get_monotonic_time();
        devc->spent_us = 0;
+       devc->step = 0;
 
        return SR_OK;
 }