Skip to content

Commit

Permalink
Fix motion detection switch
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Feb 24, 2023
1 parent 8fdcfa0 commit b40b880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/httpd/htdocs/js/modules/camera_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ APP.camera_settings = (function($) {
loadingStatusElem.fadeOut(500);

$.each(response, function(key, state) {
if(key=="MOTION_DETECTION" || key=="SENSITIVITY" || key=="SOUND_SENSITIVITY" || key=="CRUISE")
if(key=="SENSITIVITY" || key=="SOUND_SENSITIVITY" || key=="CRUISE")
$('select[data-key="' + key + '"]').prop('value', state);
else
$('input[type="checkbox"][data-key="' + key + '"]').prop('checked', state === 'yes');
Expand Down

0 comments on commit b40b880

Please sign in to comment.