Skip to content

Commit bfb7e03

Browse files
author
Neil Goldader
committed
Changed request from a BufferedWriter to BufferedOutputStream
1 parent 7384bec commit bfb7e03

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Manifest-Version: 1.0
22
AutoUpdate-Show-In-Client: true
33
OpenIDE-Module: zipcar.emulator.spi
44
OpenIDE-Module-Localizing-Bundle: zipcar/emulator/spi/Bundle.properties
5-
OpenIDE-Module-Specification-Version: 1.1
5+
OpenIDE-Module-Specification-Version: 1.2
66

src/zipcar/emulator/spi/Spi.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.microchip.mplab.mdbcore.simulator.SimulatorDataStore.SimulatorDataStore;
99
import com.microchip.mplab.mdbcore.simulator.PeripheralSet;
1010
import java.io.BufferedInputStream;
11+
import java.io.BufferedOutputStream;
1112
import java.io.BufferedReader;
1213
import java.io.BufferedWriter;
1314
import java.io.File;
@@ -43,7 +44,7 @@ public class Spi implements Peripheral {
4344
SFRSet sfrs;
4445

4546
LinkedList<Byte> bytes = new LinkedList<Byte>();
46-
BufferedWriter request;
47+
BufferedOutputStream request;
4748
BufferedInputStream response;
4849
Yaml yaml = new Yaml();
4950

@@ -102,7 +103,7 @@ public boolean init(SimulatorDataStore DS) {
102103
// Setup Sockets
103104
try {
104105
Socket reqSocket = new Socket("localhost", 5555);
105-
request = new BufferedWriter(new OutputStreamWriter(reqSocket.getOutputStream()));
106+
request = new BufferedOutputStream(reqSocket.getOutputStream());
106107
response = new BufferedInputStream(reqSocket.getInputStream());
107108
} catch (Exception e) {
108109
messageHandler.outputError(e);

0 commit comments

Comments
 (0)