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)