We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c5de91 + 3a4478d commit f432931Copy full SHA for f432931
OpenFIREmain/OpenFIREserial.cpp
@@ -976,10 +976,13 @@ void OF_Serial::SerialProcessingDocked()
976
if(Serial.peek() < PROFILE_COUNT) {
977
FW_Common::SelectCalProfile(Serial.read());
978
char buf[2] = {OF_Const::sCurrentProf, (uint8_t)OF_Prefs::currentProfile};
979
- Serial.write(buf, 2);
+ Serial.write(buf, sizeof(buf));
980
if(Serial.read() == OF_Const::sCaliStart) {
981
- if(FW_Common::camNotAvailable) Serial.write(OF_Const::sError);
982
- else {
+ if(FW_Common::camNotAvailable) {
+ buf[0] = OF_Const::sError;
983
+ buf[1] = OF_Const::sErrCam;
984
985
+ } else {
986
// sensitivity/layout preset
987
if(Serial.peek() != -1) {
988
FW_Common::SetIrSensitivity(Serial.peek() & 0b11110000);
0 commit comments