File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ Manifest-Version: 1.0
2
2
AutoUpdate-Show-In-Client: true
3
3
OpenIDE-Module: zipcar.emulator.spi
4
4
OpenIDE-Module-Localizing-Bundle: zipcar/emulator/spi/Bundle.properties
5
- OpenIDE-Module-Specification-Version: 1.1
5
+ OpenIDE-Module-Specification-Version: 1.2
6
6
Original file line number Diff line number Diff line change 8
8
import com .microchip .mplab .mdbcore .simulator .SimulatorDataStore .SimulatorDataStore ;
9
9
import com .microchip .mplab .mdbcore .simulator .PeripheralSet ;
10
10
import java .io .BufferedInputStream ;
11
+ import java .io .BufferedOutputStream ;
11
12
import java .io .BufferedReader ;
12
13
import java .io .BufferedWriter ;
13
14
import java .io .File ;
@@ -43,7 +44,7 @@ public class Spi implements Peripheral {
43
44
SFRSet sfrs ;
44
45
45
46
LinkedList <Byte > bytes = new LinkedList <Byte >();
46
- BufferedWriter request ;
47
+ BufferedOutputStream request ;
47
48
BufferedInputStream response ;
48
49
Yaml yaml = new Yaml ();
49
50
@@ -102,7 +103,7 @@ public boolean init(SimulatorDataStore DS) {
102
103
// Setup Sockets
103
104
try {
104
105
Socket reqSocket = new Socket ("localhost" , 5555 );
105
- request = new BufferedWriter ( new OutputStreamWriter ( reqSocket .getOutputStream () ));
106
+ request = new BufferedOutputStream ( reqSocket .getOutputStream ());
106
107
response = new BufferedInputStream (reqSocket .getInputStream ());
107
108
} catch (Exception e ) {
108
109
messageHandler .outputError (e );
You can’t perform that action at this time.
0 commit comments