Open vishnu-chalil opened 6 years ago
Howdy! You might need to add the function to your object in Object.create.
Example from my code from another project:
let ThermalPrinter = {
create: function(uart_no, dtr_pin, heatTime) {
return Object.create({
_i: ThermalPrinter._c(uart_no, dtr_pin, heatTime),
print: ThermalPrinter.print,
had to add this >> println: ThermalPrinter.println
});
},
print: function(str) {
ThermalPrinter._print(this._i, str, str.length);
},
println: function(str) {
ThermalPrinter._println(this._i, str, str.length);
},
_c: ffi('void *thermal_printer_create(int, int, int)'),
_print: ffi('void print(void *, char *, int)'),
_println: ffi('void println(void *, char *, int)'),
}
I updated and build the firmware with new version tools and now I am stuck in this.All I get is this output
Is there something that I could have possibly missed