bravohe / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

Patch for /smatool.c #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Inverter Serial number is a long long and needs to be printed with %lld 

Original issue reported on code.google.com by 24doe...@gmail.com on 9 Feb 2013 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
The sympton of not having this patch is that PVOutput shows your average 
generation and total day generation but the actuall current power generation 
always shows at 1Watt. This is because smatool tries to select the maximum 
output of the array from LiveData using the serial number as part of the 
selection criteria. This fails because the serial number id mis-represented and 
so doesn't match watch is in the atble and so the next selection from DayData 
erroneously restricts the maximum output to 1Watt.

After spending agaes tracing through the code I eventually arrived at the same 
conclusion as you. Wish I'd have seen this post sooner :)

Thanks.

Original comment by marcus.j...@gmail.com on 26 Feb 2013 at 4:24