Debug csv line generation
This commit is contained in:
parent
1d02bb7d2f
commit
7953969dff
@ -124,9 +124,9 @@ class Data:
|
|||||||
def csv(self, header=False):
|
def csv(self, header=False):
|
||||||
"""Serialized data values (or keys if header=True) as CSV line"""
|
"""Serialized data values (or keys if header=True) as CSV line"""
|
||||||
if header:
|
if header:
|
||||||
return ";".join(self.data.keys())
|
return ";".join([str(x) for x in self.data.keys()])
|
||||||
|
|
||||||
return ";".join(self.data.values())
|
return ";".join([str(x) for x in self.data.values()])
|
||||||
|
|
||||||
def write_on_flash(self, current, verbose=True):
|
def write_on_flash(self, current, verbose=True):
|
||||||
"""Save the current data as csv file on SPI flash"""
|
"""Save the current data as csv file on SPI flash"""
|
||||||
|
Loading…
Reference in New Issue
Block a user