Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/terjeio/grblHAL
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Jan 10, 2021
2 parents 164d9b8 + 8eafe97 commit 2d871b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/SAMD21/grblHAL_MKRZERO/src/usb_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ void usb_serialWriteS (const char *s)

while(txbuf.length) {

if((avail = Serial.availableForWrite()) > 10) {
if((avail = SerialUSB.availableForWrite()) > 10) {

length = avail < txbuf.length ? avail : txbuf.length;

Serial.write((uint8_t *)txbuf.s, length); // doc is wrong - does not return bytes sent!
SerialUSB.write((uint8_t *)txbuf.s, length); // doc is wrong - does not return bytes sent!

txbuf.length -= length;
txbuf.s += length;
Expand Down
2 changes: 2 additions & 0 deletions drivers/STM32F4xx/Src/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,8 @@ bool driver_init (void)
hal.info = "STM32F446";
#elif defined(STM32F411xE)
hal.info = "STM32F411";
#elif defined(STM32F407xx)
hal.info = "STM32F407";
#else
hal.info = "STM32F401CC";
#endif
Expand Down

0 comments on commit 2d871b2

Please sign in to comment.