Debug csv line generation

This commit is contained in:
Pierrick C 2018-09-10 07:53:21 +02:00
parent 1d02bb7d2f
commit 7953969dff

View File

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