File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -536,18 +536,14 @@ size_t SARA_R5::write(const char *str)
536
536
537
537
size_t SARA_R5::write (const char *buffer, size_t size)
538
538
{
539
- // size is unused at the moment but could be used if this function is ever updated to use write instead of print.
540
- size_t ignoreMe = size;
541
- ignoreMe -= 0 ; // Avoid the pesky compiler warning.
542
-
543
539
if (_hardSerial != NULL )
544
540
{
545
- return _hardSerial->print ( buffer);
541
+ return _hardSerial->write (( const uint8_t *) buffer, ( int )size );
546
542
}
547
543
#ifdef SARA_R5_SOFTWARE_SERIAL_ENABLED
548
544
else if (_softSerial != NULL )
549
545
{
550
- return _softSerial->print ( buffer);
546
+ return _softSerial->write (( const uint8_t *) buffer, ( int )size );
551
547
}
552
548
#endif
553
549
return (size_t )0 ;
You can’t perform that action at this time.
0 commit comments