@@ -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