Skip to content

Commit fc52af9

Browse files
committed
no touch on Win. Substitute another method.
1 parent b886a1a commit fc52af9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/mcmanifest.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ export class MakeFile extends FILE {
115115
this.line("");
116116
if (tool.bleServicesFiles.length) {
117117
this.echo(tool, "bles2gatt bleservices");
118-
this.line(`\ttouch ${tool.moddablePath}/modules/network/ble/${tool.platform}/modBLEServer.c`);
118+
if (tool.windows)
119+
this.line(`\ttype nul >> ${tool.moddablePath}/modules/network/ble/${tool.platform}/modBLEServer.c`);
120+
else
121+
this.line(`\ttouch ${tool.moddablePath}/modules/network/ble/${tool.platform}/modBLEServer.c`);
119122
}
120123
this.write("\t$(BLES2GATT)");
121124
if (tool.bleServicesFiles.length)

0 commit comments

Comments
 (0)