Skip to content
Snippets Groups Projects
  1. Nov 28, 2022
  2. Nov 27, 2022
  3. Nov 26, 2022
  4. Nov 23, 2022
  5. Nov 20, 2022
  6. Nov 19, 2022
  7. Nov 15, 2022
    • Deucе's avatar
      Add new 3-wire (No RTS) connection type · 0203737e
      Deucе authored
      This is for weird embedded systems where RTS is not supported by
      the communications channel, but is actually controlling something
      else (TX, Bootloader update mode, etc).
      0203737e
  8. Nov 08, 2022
  9. Nov 07, 2022
  10. Nov 06, 2022
  11. Nov 05, 2022
  12. Nov 04, 2022
    • Rob Swindell's avatar
      Resolve undetected or infinitely-retried socket-send failures · 4dd32231
      Rob Swindell authored
      My hub (1:218/700) is currently having what appears to be a TCP/IP
      connectivity issue that was resulting in infinite "Send failure"
      log messages and "We got an M_EOB, but there are still N files pending M_GOT"
      log messages.
      
      I first added better socket-send failure detection (checking return value of
      sendCmd() and sendData() where needed) and then noticed that failure to send
      a file was not detected (the sending.file.position is advanced even if
      sendData() fails), so now handling that condition too.
      
      Also added more diagnostics around socket-send failures (is socket writable?)
      in this particular case, the socket is not writable and socket-send is
      returning 0.
      4dd32231
  13. Oct 24, 2022
  14. Oct 23, 2022
  15. Oct 22, 2022
    • Rob Swindell's avatar
      Fix CID 319174 (Out-of-bounds write) correctly · 6812da2f
      Rob Swindell authored
      This Coverity reported issue was previously resolved (incorrectly) with
      commit 0c441424 which also introduced a bug that ate all the unexpected
      cursor position report characters (causing issue #304).
      
      The correct fix was to compare the response length against the buffer size
      minus one, to leave room for the NUL terminator.
      
      While fixing this and issue #304, I noticed that this function was using the
      response length ('rsp') as both the state machine state and string length,
      which didn't work right if a nearly-matching report/response was received:
      the x/y values would have been stripped from the response before stuffing
      in the keyboard input buffer. So a bit of a refactor here using a proper
      state machine variable.
      6812da2f
  16. Oct 21, 2022
    • Rob Swindell's avatar
      Fix lost 'unexpected characters' received in ANSI get cursor position response · 25b0e6d7
      Rob Swindell authored
      Unexpected characters received (maybe typed by the user) were supposed to
      be stuffed in the keyboard input buffer using ungetstr(), but the input string
      was cleared rather than NUL-terminated before logging the expected character
      and calling ungetstr(), so nothing (a blank string) was logged and nothing was
      stuffed in the keyboard input-buffer in this case. Just an off-by-one bug.
      
      This should fix issue #304. Thanks to Keyop and Nelgin for their persistence
      in reporting and testing (in #synchronet at irc.synchro.net).
      25b0e6d7
    • Rob Swindell's avatar
      Fix-up the recently-added debug/error log messages · 1cdc4d8d
      Rob Swindell authored
      I didn't look closely enough at which write() call I was instrumenting.
      This is now more useful, though I think we already found the root-cause
      based on different log output ("Unexpected ansi_getxy response").
      1cdc4d8d
Loading