Hello Paul
In Teensyduino 1.85 you made a change which breaks exsiting sketch code.
In previous TeensyDuino versions the function Keyboard.send_now() had a bool return value and I wrote in my sketch:
This results in a compiler error now because you changed
into
You also changed usb_keyboard_send() so that it returns integer 0 and -1 instead of true and false as before.
But I cannot see any reason why this return value is not passed through in send_now().
Please think that with this kind of changes you will always break existing code unnecessarily.
In Teensyduino 1.85 you made a change which breaks exsiting sketch code.
In previous TeensyDuino versions the function Keyboard.send_now() had a bool return value and I wrote in my sketch:
Code:
if (!Keyboard.send_now())
{
Serial.println("Error pressing USB key");
return false;
}
This results in a compiler error now because you changed
Code:
bool send_now(void) { return usb_keyboard_send(); }
into
Code:
void send_now(void) { usb_keyboard_send(); }
You also changed usb_keyboard_send() so that it returns integer 0 and -1 instead of true and false as before.
But I cannot see any reason why this return value is not passed through in send_now().
Please think that with this kind of changes you will always break existing code unnecessarily.