@@ -23,8 +23,6 @@ function uctBtnExport(device, online, progress, context) {
2323 var exportFormat = ( exportFormatSelection == 3 ) ? "" : "name" ;
2424 var multiLine = ( exportFormatSelection == 1 ) ;
2525
26- // TODO add p_messageOutput again?
27-
2826 var param_exportOutput = device . getParameterByName ( context . p_exportOutput ) ;
2927 param_exportOutput . value = uctExportModuleChannelToString ( device , module , channelSource , exportFormat , multiLine , includeHidden , includeDefault ) ;
3028 Log . info ( "OpenKNX ConfigTransfer: Handle Channel Export [DONE]" )
@@ -94,7 +92,6 @@ function uctBtnReset(device, online, progress, context) {
9492
9593
9694function uctSerializeParamValue ( paramValue ) {
97- /* TODO check inclusion of ` ` and common characters without encoding */
9895 return encodeURIComponent ( paramValue ) ;
9996}
10097
@@ -453,7 +450,7 @@ function uctImportModuleChannelFromString(device, module, channel, exportStr, im
453450 }
454451 }
455452
456- // TODO implement handling of module version '*'
453+ // module version '*' is deprecated and should not longer used, but never created by export
457454
458455 // check app
459456 // '*' will not be accepted when app should be the same
@@ -507,7 +504,6 @@ function uctImportModuleChannelFromString(device, module, channel, exportStr, im
507504 if ( ! writeClean ) {
508505 Log . error ( "OpenKNX ConfigTransfer: ImportModuleChannelFromString - Write Params produced Errors!" ) ;
509506 }
510- /* TODO check need of validation, or repeated writing to compensate values updated by ETS, e.g. by calc */
511507
512508 Log . info ( "OpenKNX ConfigTransfer: ImportModuleChannelFromString [DONE]" ) ;
513509 var msg = module + "/" + channel + " Import " ;
@@ -593,7 +589,7 @@ function uctPrepareParamValues(module, params, importContent, result, merge, all
593589 // TODO FIXME: Ensure same version!
594590 paramIndex = paramKey ;
595591 } else {
596- // TODO error-handling
592+ // will be ignored, ware or produce an error (depending on module and call)
597593 }
598594
599595 if ( paramIndex >= 0 ) {
@@ -687,10 +683,10 @@ function uctSwapModuleChannel(device, progress, module, channelA, channelB) {
687683 throw new Error ( 'Zu tauschende Kanäle dürfen NICHT identisch sein!' ) ;
688684 }
689685 /* TODO check swap without serialize/deserialize */
690- var exportStrA = uctExportModuleChannelToString ( device , /* TODO progress,*/ module , channelA , "" , false , true , false ) ;
691- var exportStrB = uctExportModuleChannelToString ( device , /* TODO progress,*/ module , channelB , "" , false , true , false ) ;
692- uctImportModuleChannelFromString ( device , /* TODO progress,*/ module , channelB , exportStrA , 7 ) ;
693- uctImportModuleChannelFromString ( device , /* TODO progress,*/ module , channelA , exportStrB , 7 ) ;
686+ var exportStrA = uctExportModuleChannelToString ( device , /* progress,*/ module , channelA , "" , false , true , false ) ;
687+ var exportStrB = uctExportModuleChannelToString ( device , /* progress,*/ module , channelB , "" , false , true , false ) ;
688+ uctImportModuleChannelFromString ( device , /* progress,*/ module , channelB , exportStrA , 7 ) ;
689+ uctImportModuleChannelFromString ( device , /* progress,*/ module , channelA , exportStrB , 7 ) ;
694690 return module + "/" + channelA + " <--> " + module + "/" + channelB + " [OK]" ;
695691}
696692
0 commit comments