Skip to content

Commit 1a6196e

Browse files
committed
More fixes
1 parent dd73c58 commit 1a6196e

7 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/nanoFramework.Graphics/Graphics/Core/Support/Jpeg/jdmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ prepare_for_output_pass(j_decompress_ptr cinfo)
459459
#ifdef QUANT_2PASS_SUPPORTED
460460
/* Final pass of 2-pass quantization */
461461
master->pub.is_dummy_pass = false;
462-
(*cinfo->cquantize->start_pass) (cinfo, false;
462+
(*cinfo->cquantize->start_pass) (cinfo, false);
463463
(*cinfo->post->start_pass) (cinfo, JBUF_CRANK_DEST);
464464
(*cinfo->main->start_pass) (cinfo, JBUF_CRANK_DEST);
465465
#else

src/nanoFramework.Graphics/Graphics/Core/Support/Jpeg/jdtrans.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ transdecode_master_selection(j_decompress_ptr cinfo)
121121
}
122122

123123
/* Always get a full-image coefficient buffer. */
124-
jinit_d_coef_controller(cinfo, true;
124+
jinit_d_coef_controller(cinfo, true);
125125

126126
/* We can now tell the memory manager to allocate virtual arrays. */
127127
(*cinfo->mem->realize_virt_arrays) ((j_common_ptr)cinfo);

src/nanoFramework.Graphics/Graphics/Core/Support/Jpeg/jmemmgr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ access_virt_sarray(j_common_ptr cinfo, jvirt_sarray_ptr ptr,
794794
ERREXIT(cinfo, JERR_VIRTUAL_BUG);
795795
/* Flush old buffer contents if necessary */
796796
if (ptr->dirty) {
797-
do_sarray_io(cinfo, ptr, true;
797+
do_sarray_io(cinfo, ptr, true);
798798
ptr->dirty = false;
799799
}
800800
/* Decide what part of virtual array to access.
@@ -820,7 +820,7 @@ access_virt_sarray(j_common_ptr cinfo, jvirt_sarray_ptr ptr,
820820
* During the initial write pass, we will do no actual read
821821
* because the selected part is all undefined.
822822
*/
823-
do_sarray_io(cinfo, ptr, false;
823+
do_sarray_io(cinfo, ptr, false);
824824
}
825825
/* Ensure the accessed part of the array is defined; prezero if needed.
826826
* To improve locality of access, we only prezero the part of the array
@@ -882,7 +882,7 @@ access_virt_barray(j_common_ptr cinfo, jvirt_barray_ptr ptr,
882882
ERREXIT(cinfo, JERR_VIRTUAL_BUG);
883883
/* Flush old buffer contents if necessary */
884884
if (ptr->dirty) {
885-
do_barray_io(cinfo, ptr, true;
885+
do_barray_io(cinfo, ptr, true);
886886
ptr->dirty = false;
887887
}
888888
/* Decide what part of virtual array to access.
@@ -908,7 +908,7 @@ access_virt_barray(j_common_ptr cinfo, jvirt_barray_ptr ptr,
908908
* During the initial write pass, we will do no actual read
909909
* because the selected part is all undefined.
910910
*/
911-
do_barray_io(cinfo, ptr, false;
911+
do_barray_io(cinfo, ptr, false);
912912
}
913913
/* Ensure the accessed part of the array is defined; prezero if needed.
914914
* To improve locality of access, we only prezero the part of the array

src/nanoFramework.Graphics/Graphics/Core/Support/Jpeg/jquant1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ quantize_fs_dither(j_decompress_ptr cinfo, JSAMPARRAY input_buf,
717717
*/
718718
errorptr[0] = (FSERROR)bpreverr; /* unload prev err into array */
719719
}
720-
cquantize->on_odd_row = (cquantize->on_odd_row ? FALSE : true;
720+
cquantize->on_odd_row = (cquantize->on_odd_row ? false : true);
721721
}
722722
}
723723

src/nanoFramework.Graphics/TouchPanel/Core/TouchPanel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ HRESULT TouchPanelDriver::GetDeviceCaps(unsigned int iIndex, void *lpOutput)
133133
{
134134
if (lpOutput == NULL)
135135
{
136-
return false;
136+
return CLR_E_FAIL;
137137
}
138138

139139
switch (iIndex)
@@ -162,7 +162,7 @@ HRESULT TouchPanelDriver::GetDeviceCaps(unsigned int iIndex, void *lpOutput)
162162
return (g_TouchPanelDriver.CalibrationPointGet((TOUCH_PANEL_CALIBRATION_POINT *)lpOutput));
163163

164164
default:
165-
return false;
165+
return CLR_E_FAIL;
166166
}
167167

168168
return S_OK;

targets/ChibiOS/_nf-overlay/os/hal/ports/STM32/LLD/ONEWIREv1/onewire_lld.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ uint8_t oneWire_lld_TouchReset(void)
201201
// set UART baud rate to 9600bps (required to send the RESET condition to the 1-Wire bus)
202202
uartSetSpeed(9600);
203203

204-
chBSemReset(&ONEWIRED1.TxCompleted, true;
205-
chBSemReset(&ONEWIRED1.RxCompleted, true;
204+
chBSemReset(&ONEWIRED1.TxCompleted, true);
205+
chBSemReset(&ONEWIRED1.RxCompleted, true);
206206
uartStartReceive(ONEWIRED1.UartDriver, 1, &ONEWIRED1.RxBuffer[0]);
207207
uartStartSend(ONEWIRED1.UartDriver, 1, &ONEWIRED1.TxBuffer[0]);
208208
chThdSleepMilliseconds(10);
@@ -229,8 +229,8 @@ bool oneWire_lld_TouchBit(bool sendbit)
229229
// (only required for Cortex-M7)
230230
cacheBufferFlush(&ONEWIRED1.TxBuffer[0], 1);
231231

232-
chBSemReset(&ONEWIRED1.RxCompleted, true;
233-
chBSemReset(&ONEWIRED1.TxCompleted, true;
232+
chBSemReset(&ONEWIRED1.RxCompleted, true);
233+
chBSemReset(&ONEWIRED1.TxCompleted, true);
234234
uartStartReceive(ONEWIRED1.UartDriver, 1, &ONEWIRED1.RxBuffer[0]);
235235
uartStartSend(ONEWIRED1.UartDriver, 1, &ONEWIRED1.TxBuffer[0]);
236236
chThdSleepMilliseconds(0.1);
@@ -274,8 +274,8 @@ uint8_t oneWire_lld_TouchByte(uint8_t sendbyte)
274274
// (only required for Cortex-M7)
275275
cacheBufferFlush(&ONEWIRED1.TxBuffer[0], 8);
276276

277-
chBSemReset(&ONEWIRED1.RxCompleted, true;
278-
chBSemReset(&ONEWIRED1.TxCompleted, true;
277+
chBSemReset(&ONEWIRED1.RxCompleted, true);
278+
chBSemReset(&ONEWIRED1.TxCompleted, true);
279279
uartStartReceive(ONEWIRED1.UartDriver, 8, &ONEWIRED1.RxBuffer[0]);
280280
uartStartSend(ONEWIRED1.UartDriver, 8, &ONEWIRED1.TxBuffer[0]);
281281
chThdSleepMilliseconds(0.1);

targets/ThreadX/_common/NetX/netx_sockets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ bool NETX_SOCKETS_Driver::Initialize()
223223

224224
if (interfaceNumber == SOCK_SOCKET_ERROR)
225225
{
226-
DEBUG_HANDLE_SOCKET_ERROR("Network init", false;
226+
DEBUG_HANDLE_SOCKET_ERROR("Network init", false);
227227
// FIXME debug_printf("SocketError: %d\n", errorCode);
228228
continue;
229229
}

0 commit comments

Comments
 (0)