Code Monkey home page Code Monkey logo

Comments (2)

AverageGuy avatar AverageGuy commented on August 20, 2024

So I decided to hack away at the problem and came up with this solution. It now compiles but I havn't tested it to see if it works. The compile errors go away:
--- TelnetSpy.cpp.orig 2019-06-11 03:39:16.000000000 -0400
+++ TelnetSpy.cpp 2020-07-01 08:28:32.772613248 -0400
@@ -403,7 +403,7 @@
if (debugOutput) {
actualObject = this;
#ifdef ESP8266

  •   os_install_putc1((void*) TelnetSpy_putc);  // Set system printing (os_printf) to TelnetSpy
    
  •   os_install_putc1( TelnetSpy_putc);  // Set system printing (os_printf) to TelnetSpy
      system_set_os_print(true);
    

#else // ESP32
// ToDo: How can be done this for ESP32 ?
@@ -412,7 +412,7 @@
if (actualObject == this) {
#ifdef ESP8266
system_set_os_print(false);

  •   	os_install_putc1((void*) TelnetSpy_ignore_putc); // Ignore system printing
    
  •   	os_install_putc1( TelnetSpy_ignore_putc); // Ignore system printing
    

#else // ESP32
// ToDo: How can be done this for ESP32 ?
#endif

Results from compile:

Executable segment sizes:
RODATA : 1540 ) / 81920 - constants (global, static) in RAM/HEAP
DATA : 1276 ) - initialized variables (global, static) in RAM/HEAP
IRAM : 27856 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
BSS : 25576 ) - zeroed variables (global, static) in RAM/HEAP
IROM : 285660 - code in flash (default or ICACHE_FLASH_ATTR)
Sketch uses 316332 bytes (33%) of program storage space. Maximum is 958448 bytes.
Global variables use 28392 bytes (34%) of dynamic memory, leaving 53528 bytes for local variables. Maximum is 81920 bytes.

from telnetspy.

sebitnt avatar sebitnt commented on August 20, 2024

After applying the above changes it is working fine for me. The author should update the code. Thank you!

from telnetspy.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.