From 886d87cc0ad4061f8cd8f9d2c11c2d1e3ebc2ce5 Mon Sep 17 00:00:00 2001 From: narugit Date: Mon, 28 Aug 2023 22:35:39 +0900 Subject: [PATCH] dirty commit --- smctemp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smctemp.cc b/smctemp.cc index e031efc..d0a593a 100755 --- a/smctemp.cc +++ b/smctemp.cc @@ -88,7 +88,7 @@ void printSI16(SmcVal_t val) { } void printPWM(SmcVal_t val) { - std::ios_base::fmtflags f(std::cout.flags()); + std::ios_base::fmtflags f(std::cout.flags()) std::cout << std::fixed << std::setprecision(1) << (float)ntohs(*reinterpret_cast(val.bytes)) * 100 / 65536.0; std::cout.flags(f); @@ -96,6 +96,7 @@ void printPWM(SmcVal_t val) { void printBytesHex(SmcVal_t val) { std::cout << " (bytes:"; + foo; for (int i = 0; i < val.dataSize; i++) { std::ios_base::fmtflags f(std::cout.flags()); std::cout << " " << std::setw(2)