Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3339e8c

Browse files
Auto-formatting update.
1 parent bcf641e commit 3339e8c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎src/AVRSDRotationalLogger.h‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,19 @@ class AVRSDRotationalLogger final : public LoggerBase
181181
const char* buffer = log_buffer_.storage();
182182

183183
/** Note on const_cast
184-
*
185-
* The circular buffer returns a const char* for the underlying storage,
186-
* but the AVR EEPROM library requires that a char* is passed to write().
187-
* We're not modifying the buffer, so I'm const casting here.
188-
*/
184+
*
185+
* The circular buffer returns a const char* for the underlying storage,
186+
* but the AVR EEPROM library requires that a char* is passed to write().
187+
* We're not modifying the buffer, so I'm const casting here.
188+
*/
189189

190190
if((head < tail) || ((tail > 0) && (log_buffer_.size() == log_buffer_.capacity())))
191191
{
192192
// we have a wraparound case
193193
// We will write from buffer[tail] to buffer[size] in one go
194194
// Then we'll reset head to 0 so that we can write 0 to tail next
195-
bytes_written = file_.write(const_cast<char*>(&buffer[tail]), log_buffer_.capacity() - tail);
195+
bytes_written =
196+
file_.write(const_cast<char*>(&buffer[tail]), log_buffer_.capacity() - tail);
196197
bytes_written += file_.write(const_cast<char*>(buffer), head);
197198
}
198199
else

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /