mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 15:15:07 +03:00 
			
		
		
		
	sensortemplate: Use SensorTemplate as class name in json
Replace TemplateItem with SensorTemplate in the sensortemplate.json and json ctest. Change to contributions.md which removes all objects with a key starting with "//" from the generated sensor .json file. This allows the json ctest to pass OOTB for new sensor libraries generated from the make_new_sensor function. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
		| @@ -17,12 +17,12 @@ | ||||
|         "required": true | ||||
|     }, | ||||
|     "Sensor Class": { | ||||
|         "// TemplateItem": { | ||||
|         "// SensorTemplate": { | ||||
|             "comment": "Template Item", | ||||
|             "type": "object", | ||||
|             "required": true | ||||
|         }, | ||||
|         "TemplateItem": { | ||||
|         "SensorTemplate": { | ||||
|             "// Name": { | ||||
|                 "comment": "Sensor display name as indicated by the datasheet or manufacturer", | ||||
|                 "type": "string", | ||||
| @@ -86,7 +86,7 @@ | ||||
|                 "type": "string", | ||||
|                 "required": false | ||||
|             }, | ||||
|             "Image": "sensortemplate.jpg", | ||||
|             "Image": "sensortemplate.png", | ||||
|             "// Examples": { | ||||
|                 "comment": "Functional examples showing the main use cases for this sensor class. At least one is required.", | ||||
|                 "type": "object", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Noel Eck
					Noel Eck