Skip to content

Commit af4737d

Browse files
committed
fixed logging of stock.getCurrentPrice
1 parent cc51113 commit af4737d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/src/widgets/stockwidget/StockWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void StockWidget::buttonPressed(uint8_t buttonId, ButtonState state) {
108108
}
109109

110110
void StockWidget::displayStock(int8_t displayIndex, StockDataModel &stock, uint32_t backgroundColor, uint32_t textColor) {
111-
Log.infoln("displayStock - %s ~ %d", stock.getSymbol().c_str(), stock.getCurrentPrice());
111+
Log.infoln("displayStock - %s ~ %s", stock.getSymbol().c_str(), stock.getCurrentPrice(2).c_str());
112112
if (stock.getCurrentPrice() == 0.0) {
113113
// There isn't any data to display yet
114114
return;

0 commit comments

Comments
 (0)