Commit Graph
1272 Commits
Author SHA1 Message Date
SpudGunMan da416fcd20 refactor flush
The double flush() is not the root cause; the real issue is that code is trying to use the serial port after it has been closed.
The error occurs both in close() (during flush()) and later in _writeBytes() (during write()), indicating the port is closed or invalid at those times.
2025-10-14 07:54:37 -07:00
SpudGunMan 93da1da386 flush() is only called if the stream is open
This ensures flush() is only called if the stream is open, and logs (but ignores) any exceptions during flush. This should prevent the "Bad file descriptor" error.

I see this error a lot on a rak unit, I dont know this is the way but .. you be the judge.
2025-10-14 07:42:27 -07:00
Ian McEwen 7554c03a26 protobufs: v2.7.10 2025-09-24 21:20:49 -07:00
Ian McEwen 14ff3eb9c4 Merge branch 'master' into loggingHandler2 2025-09-18 09:26:32 -07:00
Ian McEwen 47e5b04d3b protobufs: v2.7.9 2025-09-18 09:24:33 -07:00
Ian McEwen 593b05dbcd protobufs: v2.7.8 2025-09-12 09:46:52 -07:00
pdxlocations 7e3d347b63 remove trailing whitespaces 2025-08-29 23:19:22 -07:00
pdxlocations c6efccdbd2 init 2025-08-29 23:11:26 -07:00
shukari fe093ac34b fix errors and better linux/windows handling in tests 2025-08-21 15:56:10 +02:00
shukari dd238dcbe3 ignore pathlib import 2025-08-19 22:03:37 +02:00
shukari e330afc899 more paths to os.path.join 2025-08-19 13:38:59 +02:00
shukari a63f3f6e94 use os.path.join for path 2025-08-19 11:23:22 +02:00
shukari 52eb112b95 new Parameter --debuglib for only meshtastic debug, more termios fixes for windows tests
(cherry picked from commit 4fc4d41d3d29998bb7b697bf412be5c1449ea950)
2025-08-19 11:14:38 +02:00
Ian McEwen f5ecd28705 protobufs: v2.7.5 2025-08-18 09:52:48 -07:00
shukari cbf7b9befe pylint: test_mesh_interface.py line too long 2025-08-09 16:58:48 +02:00
shukari f3ba660cf4 fix: lint error 2025-08-07 13:30:47 +02:00
shukari 4b143030d3 system independent path separators; pytest for windows fixes 2025-08-07 12:05:43 +02:00
pdxlocations 03aaa4c98e always call setOwner 2025-08-06 21:58:42 -07:00
shukari a79e17a575 fix test_exit_with_exception test, pytest for windows
- test are now runable on windows, some are ignored and a fake termios for the decorators
- test_exit_with_exception with a true exception
2025-08-06 23:01:40 +02:00
shukari 38b163fa89 move logger init to the end of the import block for mesh_interface 2025-08-06 20:00:42 +02:00
shukari af4947d020 move logger init to the end of the import block 2025-08-06 19:54:08 +02:00
shukari db1891b651 Added Logging Handler Names 2025-08-06 18:21:32 +02:00
Ian McEwen c60b5d4b05 Add some extra fields that now appear in MyNodeInfo to tests 2025-08-01 15:53:13 -07:00
Ian McEwen 83d82c518a Merge pull request #807 from pdxlocations/export-true-defaults
Export missing defaults when set False
2025-08-01 15:51:05 -07:00
Ian McEwen 8a95ce4636 protobufs: v2.7.4 2025-08-01 15:48:32 -07:00
pdxlocations 0261313fc5 add test 2025-07-27 12:10:05 -07:00
pdxlocations c1a6234694 make tuple type hint explicit 2025-07-26 23:16:50 -07:00
pdxlocations eb85439000 rename function 2025-07-26 22:27:10 -07:00
pdxlocations 885eb4898d init 2025-07-26 22:20:19 -07:00
Ian McEwen 172c123990 protobufs: v2.7.3 2025-07-22 17:26:15 -07:00
Ian McEwen fcdd83838b Merge pull request #795 from pdxlocations/canned-config
Add Ringtone and Canned Messages to --export-config and --configure
2025-07-22 17:22:11 -07:00
Ian McEwen 58967e1d91 Merge pull request #794 from pdxlocations/is-unmessageable
add --set-is-unmessageable to CLI commands
2025-07-22 17:07:50 -07:00
pdxlocations 17f7e8e20e don't check for typoed keyword 2025-07-22 11:23:45 -07:00
pdxlocations 9b5a889676 combine arguments 2025-07-22 10:17:40 -07:00
pdxlocations ce7c61861f Merge branch 'master' into is-unmessageable 2025-07-22 10:15:19 -07:00
Ian McEwen 125f63419e Merge branch 'master' into client-notifications 2025-07-22 09:54:17 -07:00
Ian McEwen cad5d18aff Merge pull request #798 from pdxlocations/export-utf8
Allow forced UTF-8 encoding for --export-config
2025-07-22 09:28:14 -07:00
Ian McEwen 706d0649c1 Merge pull request #801 from Cyclic3/master
Plumb reply_id into sendText and sendData
2025-07-22 09:23:02 -07:00
Ian McEwen 167044907d for some reason pylint likes this better 2025-07-16 19:16:16 -07:00
flockofsparrows d633f8c895 Add seeed xiao esp32s3 to supported devices 2025-07-09 16:23:21 -04:00
Cyclic3 ca82e1ce2b plumb reply_id into sendText and sendData 2025-07-08 23:38:02 +01:00
pdxlocations 0ae23eec7e don't think i needed that 2025-06-30 00:34:44 -07:00
pdxlocations 2fa85bac1f typo 2025-06-30 00:21:15 -07:00
pdxlocations 58fc614fb7 fix test 2025-06-30 00:12:42 -07:00
pdxlocations 795b652069 export utf-8 2025-06-30 00:03:11 -07:00
pdxlocations 68a2009e0e add more tests 2025-06-24 11:47:33 -07:00
pdxlocations c76e4dac87 undo comment 2025-06-24 11:17:01 -07:00
pdxlocations 428be9fbce add mesh_interface tests 2025-06-24 11:16:23 -07:00
pdxlocations eb453a2e8a add to tests 2025-06-24 08:16:45 -07:00
pdxlocations 308ac93399 add to configure 2025-06-24 07:40:11 -07:00