Peter Barker
94726509fc
GCS_MAVLink: do not send FTP reply bytes which mean nothing
...
The whole reply buffer went out whatever the reply's size, so a short
reply was padded with bytes which are not part of it.
Those bytes come from the same reply, not an earlier one: setup_reply()
clears the whole transaction, but list_dir()'s offset-skip loop then
formats each entry it skips into response.data as scratch, and a listing
which ends in an EndOfFile NAK sets only data[0] - leaving the last
skipped entry sitting behind the error code.
Copy only the bytes the reply says it has. The rest of the packet is
already zero, and since MAVLink 2 trims trailing zeros from a payload, a
short reply now goes out shorter as well.
The scratch reuse behind it is left as it is; not sending the bytes is
what keeps them off the air.
2026-09-12 15:00:50 +10:00
..
2026-08-31 08:18:26 +10:00
2026-08-31 08:18:26 +10:00
2026-08-22 21:38:02 +01:00
2026-08-28 17:21:29 +10:00
2026-08-22 21:38:02 +01:00
2026-08-26 23:14:36 +10:00
2026-08-31 08:18:26 +10:00
2026-08-18 21:06:43 -07:00
2026-07-29 18:18:35 +10:00
2026-09-08 13:09:20 +10:00
2026-08-26 23:14:36 +10:00
2026-09-05 09:08:06 +10:00
2026-09-09 06:34:01 +10:00
2026-08-18 10:25:18 +10:00
2026-08-11 13:24:54 +10:00
2026-08-31 12:21:17 +10:00
2026-09-01 20:49:36 +10:00
2026-08-31 08:18:26 +10:00
2026-09-05 09:08:00 +10:00
2026-09-04 20:39:10 +10:00
2026-07-30 23:50:11 +10:00
2026-08-26 09:47:38 +10:00
2026-09-07 11:37:32 +10:00
2026-08-11 13:24:54 +10:00
2026-08-04 11:59:14 +10:00
2026-08-04 11:59:14 +10:00
2026-08-05 17:53:47 +10:00
2026-08-27 14:01:54 +10:00
2026-08-25 10:46:36 +10:00
2026-07-22 18:57:51 +10:00
2026-09-07 11:37:01 +10:00
2026-08-25 15:41:49 +01:00
2026-09-05 06:26:33 +10:00
2026-09-01 20:09:07 +09:00
2026-09-05 06:26:33 +10:00
2026-09-03 12:19:40 +10:00
2026-09-11 10:29:57 +01:00
2026-08-27 18:50:01 +10:00
2026-09-04 09:34:10 +10:00
2026-08-07 19:24:04 +10:00
2026-09-08 10:30:25 +10:00
2026-07-29 18:18:35 +10:00
2026-08-31 08:18:26 +10:00
2026-09-10 12:46:52 +10:00
2026-08-31 08:18:26 +10:00
2026-09-08 21:13:26 +10:00
2026-09-05 09:08:20 +10:00
2026-08-31 08:18:26 +10:00
2026-08-31 08:18:26 +10:00
2026-09-03 06:44:18 +09:00
2026-08-25 15:41:49 +01:00
2026-09-02 15:58:06 +10:00
2026-08-03 11:25:00 +10:00
2026-09-07 11:37:32 +10:00
2026-09-07 11:37:32 +10:00
2026-08-04 11:59:14 +10:00
2026-09-10 18:37:55 +10:00
2026-08-26 17:54:30 +10:00
2026-08-25 12:58:58 +10:00
2026-09-05 06:26:33 +10:00
2026-08-04 11:59:14 +10:00
2026-09-05 19:09:31 +10:00
2026-09-03 12:19:40 +10:00
2026-07-29 17:16:29 +10:00
2026-09-07 11:37:23 +10:00
2026-08-26 23:14:36 +10:00
2026-09-05 09:08:00 +10:00
2026-09-08 10:34:59 +10:00
2026-08-31 08:18:26 +10:00
2026-07-30 23:49:59 +10:00
2026-07-28 13:48:28 +10:00
2026-08-06 09:05:41 +10:00
2026-08-11 13:24:54 +10:00
2026-09-01 11:17:50 +10:00
2026-08-25 15:41:49 +01:00
2026-09-11 10:56:05 +01:00
2026-08-04 11:59:14 +10:00
2026-08-26 23:14:36 +10:00
2026-09-01 20:49:36 +10:00
2026-08-27 14:01:54 +10:00
2026-08-31 08:18:26 +10:00
2026-09-12 15:00:50 +10:00
2026-09-01 20:49:36 +10:00
2026-09-05 13:58:13 +10:00
2026-09-01 20:49:36 +10:00