Write data onnly if needed

This commit is contained in:
2020-04-20 17:33:00 +02:00
parent e66b62c262
commit e8c7e182b7
+3 -1
View File
@@ -67,7 +67,9 @@ int main (int argc, char *argv[]) {
}
}
cout << last_pulse_id << endl;
if (last_pulse_id != 0) {
cout << last_pulse_id << endl;
}
if (pulse_id_buffer[999] != 0) {
break;